Hi, Is it possible to attach directly one network card to DomU ? I want my dom1 directly connected to Internet whereas Dom0 not because with the bridge method, I have to use two public IP. Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Oct 2, 2009 at 1:01 PM, William <xen-mailinglist@voxtel.com> wrote:> Is it possible to attach directly one network card to DomU ?yes, it''s called PCI passthrough> I want my dom1 directly connected to Internet whereas Dom0 not because with > the bridge method, I have to use two public IP.you can simply not give a public IP to the Dom0. it doesn''t need IP to do the bridging. or, you can give the public IP to Dom0, and use NAT+portforward to DomU instead of bridging -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I know for the NAT but there is some problems with SIP and NAT. So I prefer use directly public IP with dom1. Thanks for the answer. Will. Javier Guerra wrote:> On Fri, Oct 2, 2009 at 1:01 PM, William <xen-mailinglist@voxtel.com> wrote: >> Is it possible to attach directly one network card to DomU ? > > yes, it''s called PCI passthrough > >> I want my dom1 directly connected to Internet whereas Dom0 not because with >> the bridge method, I have to use two public IP. > > you can simply not give a public IP to the Dom0. it doesn''t need IP > to do the bridging. > > or, you can give the public IP to Dom0, and use NAT+portforward to > DomU instead of bridging >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, > you can simply not give a public IP to the Dom0. it doesn''t need IP > to do the bridging. Can you explain me this ? I have two network cards in my domO and I used this command to create a new bridge for for dom1 : /etc/xen/scripts/network-bridge start vifnum=10 netdev=eth2 bridge=eth2 But it doesn''t work, if the host interface isn''t configured. Thanks. Javier Guerra wrote:> On Fri, Oct 2, 2009 at 1:01 PM, William <xen-mailinglist@voxtel.com> wrote: >> Is it possible to attach directly one network card to DomU ? > > yes, it''s called PCI passthrough > >> I want my dom1 directly connected to Internet whereas Dom0 not because with >> the bridge method, I have to use two public IP. > > you can simply not give a public IP to the Dom0. it doesn''t need IP > to do the bridging. > > or, you can give the public IP to Dom0, and use NAT+portforward to > DomU instead of bridging >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William wrote:> Hi, > > > you can simply not give a public IP to the Dom0. it doesn''t need IP > > to do the bridging. > > Can you explain me this ? > I have two network cards in my domO and I used this command to create a > new bridge for for dom1 : > /etc/xen/scripts/network-bridge start vifnum=10 netdev=eth2 bridge=eth2 > > But it doesn''t work, if the host interface isn''t configured. > > Thanks.You have to "up" the interface in dom0 to make it available for the bridge script, but there is no need to assign an IP to that bridge in dom0. Depending on the distribution you are using this may work out of the box or you may have to setup a manual "ifconfig eth2 up" somewhere... Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thank you! Christian Tramnitz wrote:> William wrote: >> Hi, >> >> > you can simply not give a public IP to the Dom0. it doesn''t need IP >> > to do the bridging. >> >> Can you explain me this ? >> I have two network cards in my domO and I used this command to create >> a new bridge for for dom1 : >> /etc/xen/scripts/network-bridge start vifnum=10 netdev=eth2 bridge=eth2 >> >> But it doesn''t work, if the host interface isn''t configured. >> >> Thanks. > > You have to "up" the interface in dom0 to make it available for the > bridge script, but there is no need to assign an IP to that bridge in > dom0. Depending on the distribution you are using this may work out of > the box or you may have to setup a manual "ifconfig eth2 up" somewhere... > > > Best regards, > Christian > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- William Jeanneau Administrateur système, VoxTel wjeanneau@voxtel.com 514-985-2570, poste 149 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
William wrote:> Hi, > > > you can simply not give a public IP to the Dom0. it doesn''t need IP > > to do the bridging. > > Can you explain me this ? > I have two network cards in my domO and I used this command to create > a new bridge for for dom1 : > /etc/xen/scripts/network-bridge start vifnum=10 netdev=eth2 bridge=eth2 > > But it doesn''t work, if the host interface isn''t configured.To attach a interface to a bridge, the interface nees the UP attribute, it doesnt need a IP address, it just need to be UP. $ sudo ifconfig eth2 up :)> > Thanks. > > Javier Guerra wrote: >> On Fri, Oct 2, 2009 at 1:01 PM, William <xen-mailinglist@voxtel.com> >> wrote: >>> Is it possible to attach directly one network card to DomU ? >> >> yes, it''s called PCI passthrough >> >>> I want my dom1 directly connected to Internet whereas Dom0 not >>> because with >>> the bridge method, I have to use two public IP. >> >> you can simply not give a public IP to the Dom0. it doesn''t need IP >> to do the bridging. >> >> or, you can give the public IP to Dom0, and use NAT+portforward to >> DomU instead of bridging >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Jorge Armando Medina Computación Gráfica de México Web: http://www.e-compugraf.com Tel: 55 51 40 72, Ext: 124 Email: jmedina@e-compugraf.com GPG Key: 1024D/28E40632 2007-07-26 GPG Fingerprint: 59E2 0C7C F128 B550 B3A6 D3AF C574 8422 28E4 0632 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users