Peter.Weiss@ConSol.de
2005-Dec-09 16:27 UTC
[Xen-users] Xen 3 and multiple physical network devices
Hello, the docs seem to subscribe only the xen 2.0 way. Are there any docs on how to setup xen with two physical network interfaces that are served to 2 virtual network interfaces on some XenU domain? What I did so far: I changed following lines in my XenU description file: [...] nics=2 vif = [ ''mac=00:0b:cd:68:1c:6a, bridge=xenbr0'', ''mac=00:0b:cd:68:1d:6a, bridge=xenbr1'' ] [...] # /etc/xen/scripts/network-bridge start vifnum=1 # brctl show bridge name bridge id STP enabled interfaces xenbr0 8000.feffffffffff no vif0.0 peth0 vif1.0 xenbr1 8000.feffffffffff no vif1.1 The domain boots, has two network interfaces (vif1.0 and vif1.1) but no network connection. TIA Peter -- Peter.Weiss@consol.de ConSol* Software GmbH Phone +49 89 45841-100 Consulting & Solutions Mobile +49 177 6040121 Franziskanerstr. 38 http://www.consol.de D-81669 München _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nivedita Singhvi
2005-Dec-09 16:55 UTC
Re: [Xen-users] Xen 3 and multiple physical network devices
Peter.Weiss@ConSol.de wrote:> Hello, > > the docs seem to subscribe only the xen 2.0 way. > > Are there any docs on how to setup xen with two physical network interfaces > that are served to 2 virtual network interfaces on some XenU domain?almost :). a little stalled on getting stuff working, but should be out very soon..> What I did so far: > > I changed following lines in my XenU description file: > [...] > nics=2 > vif = [ ''mac=00:0b:cd:68:1c:6a, bridge=xenbr0'', > ''mac=00:0b:cd:68:1d:6a, bridge=xenbr1'' ] > [...]try and provide netdev=eth1 (or whatever your dev name is) as well.. thanks, Nivedita> # /etc/xen/scripts/network-bridge start vifnum=1 > > # brctl show > bridge name bridge id STP enabled interfaces > xenbr0 8000.feffffffffff no vif0.0 > peth0 > vif1.0 > xenbr1 8000.feffffffffff no vif1.1 > > The domain boots, has two network interfaces (vif1.0 and vif1.1) but no > network connection._______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Peter.Weiss@ConSol.de
2005-Dec-09 17:09 UTC
Re: [Xen-users] Xen 3 and multiple physical network devices
On Dec 09 2005 Nivedita Singhvi <niv@us.ibm.com> wrote:> Peter.Weiss@ConSol.de wrote: > >> Hello, >> the docs seem to subscribe only the xen 2.0 way. >> Are there any docs on how to setup xen with two physical network >> interfaces >> that are served to 2 virtual network interfaces on some XenU domain? > > almost :). a little stalled on getting stuff working, but should > be out very soon.. > >> What I did so far: >> I changed following lines in my XenU description file: >> [...] >> nics=2 >> vif = [ ''mac=00:0b:cd:68:1c:6a, bridge=xenbr0'', >> ''mac=00:0b:cd:68:1d:6a, bridge=xenbr1'' ] >> [...] > > try and provide netdev=eth1 (or whatever your dev name is) as well.. > > [...]Where should I provide this? The syntax in the DomU description file does not allow to set netdev vif = [ ''mac=00:0b:cd:68:1c:6a, bridge=xenbr0'', ''mac=00:0b:cd:68:1d:6a, bridge=xenbr1, netdev=eth1'' ] gives me a Error: Invalid vif specifier: mac=00:0b:cd:68:1d:6a, bridge=xenbr1, netdev=eth1 Running # /etc/xen/scripts/network-bridge start vifnum=1 netdev=eth1 sets up the bridge in the same way: # brctl show bridge name bridge id STP enabled interfaces xenbr0 8000.feffffffffff no vif0.0 peth0 vif3.0 vif4.0 xenbr1 8000.feffffffffff no vif4.1 But the second interface does not work as before. Peter -- Peter.Weiss@consol.de ConSol* Software GmbH Phone +49 89 45841-100 Consulting & Solutions Mobile +49 177 6040121 Franziskanerstr. 38 http://www.consol.de D-81669 München _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nivedita Singhvi
2005-Dec-09 18:39 UTC
Re: [Xen-users] Xen 3 and multiple physical network devices
Peter.Weiss@ConSol.de wrote:> Running > > # /etc/xen/scripts/network-bridge start vifnum=1 netdev=eth1Right. The network-bridge script sets up dom0 networking infrastructure for you. You will need to run this before running vif-bridge or creating a domain. You can write a wrapper script (as described in xend-config.sxp) to invoke this twice, one for each bridge/netdev pair. Try running it for eth0/xenbr0, then eth1/xenbr1: # /etc/xen/scripts/network-bridge start vifnum=0 netdev=eth0 # /etc/xen/scripts/network-bridge start vifnum=1 netdev=eth1 thanks, Nivedita> sets up the bridge in the same way: > > # brctl show > bridge name bridge id STP enabled interfaces > xenbr0 8000.feffffffffff no vif0.0 > peth0 > vif3.0 > vif4.0 > xenbr1 8000.feffffffffff no vif4.1 > > But the second interface does not work as before. > > Peter >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Peter.Weiss@ConSol.de
2005-Dec-13 14:27 UTC
Re: [Xen-users] Xen 3 and multiple physical network devices
On Dec 09 2005 Nivedita Singhvi <nsnix@comcast.net> wrote:> Peter.Weiss@ConSol.de wrote: > >[...] > > Right. The network-bridge script sets up dom0 networking > infrastructure for you. You will need to run this before > running vif-bridge or creating a domain. > > You can write a wrapper script (as described in > xend-config.sxp) to invoke this twice, one for each > bridge/netdev pair. > > Try running it for eth0/xenbr0, then eth1/xenbr1: > > # /etc/xen/scripts/network-bridge start vifnum=0 netdev=eth0 > # /etc/xen/scripts/network-bridge start vifnum=1 netdev=eth1 >Okay, this seems to work somehow... I''ve setup two interfaces on a DomU, which I can ping by ip address -- even from outside of dom0. What I would expect is that if I shutdown one interface on Dom0 that only one of the virtual interfaces on DomU would be pingable. But I can still ping both addresses on DomU. # brctl show bridge name bridge id STP enabled interfaces xenbr0 8000.feffffffffff no vif0.0 peth0 vif1.0 xenbr1 8000.feffffffffff no vif1.1 I understand the interface list of xenbr0. What I would expect in this listing is that interfaces like peth1 and vif0.1 appear in the xenbr1 interface list. But these interfaces aren''t created by the # /etc/xen/scripts/network-bridge start vifnum=1 netdev=eth1 command. Peter -- Peter.Weiss@consol.de ConSol* Software GmbH Phone +49 89 45841-100 Consulting & Solutions Mobile +49 177 6040121 Franziskanerstr. 38 http://www.consol.de D-81669 München _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users