xen rkar
2008-Nov-14 03:59 UTC
[Xen-users] How to setup multiple vif''s using different ethernet nic''s for DomU
Hi xen-users, My system has two gigabit nic''s. One of them(eth0) is configured to access the network on dom0. I want to exclusively use eth1 for the use of my DomU virtual machine. I have been reading the xen-netorking wiki page. But I could not get a specific sequence of steps to get this setup running. Appreciate if you can point me to any doc on the steps. Thank You, Regards, Karthik _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Peter Privat
2008-Nov-14 07:54 UTC
Re: [Xen-users] How to setup multiple vif''s using different ethernet nic''s for DomU
> I have been reading the xen-netorking wiki page. But I could not get a > specific sequence of steps to get this setup running. > Appreciate if you can point me to any doc on the steps.Maybe this will work: http://idolinux.blogspot.com/2008/08/xen-add-network-bridge-for-eth1.html /Peter _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Peter Privat
2008-Nov-14 08:05 UTC
Re: [Xen-users] How to setup multiple vif''s using different ethernet nic''s for DomU
On Fri, 2008-11-14 at 14:54 +0700, Peter Privat wrote:> > I have been reading the xen-netorking wiki page. But I could not get > > a specific sequence of steps to get this setup running. > > Appreciate if you can point me to any doc on the steps. > > > Maybe this will work: > http://idolinux.blogspot.com/2008/08/xen-add-network-bridge-for-eth1.html >try this: you need 2 bridge interfaces: xenbr0 = eth0 xenbr1 = eth1 create a new script with the following lines: (ex: multiplebridge.sh) in /etc/xen/scripts/ #!/bin/sh dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1 make the script executable (chmod +x /etc/xen/scripts/multiplebridge.sh) modify /etc/xen/xend-config.sxp change the line: (network-script network-bridge) to (network-script multiplebridge.sh) modify your virtual machine to use the new bridge interface: ex: vif = [ ''bridge=xenbr1'', ] Hope this helps. /Peter _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
xen rkar
2008-Nov-14 08:54 UTC
Re: [Xen-users] How to setup multiple vif''s using different ethernet nic''s for DomU
Thanks Peter for the steps. The xenbr1 bridge however is not connecting to the physical device. brctl show bridge name bridge id STP enabled interfaces eth0 8000.0018fe7846b6 no vif5.0 peth0 xenbr1 8000.feffffffffff no vif5.1 Any more configurations we missed out? Thanks, karthik On Fri, Nov 14, 2008 at 1:35 PM, Peter Privat <peter.privat@breilind.com>wrote:> On Fri, 2008-11-14 at 14:54 +0700, Peter Privat wrote: > > I have been reading the xen-netorking wiki page. But I could not get a > specific sequence of steps to get this setup running. > Appreciate if you can point me to any doc on the steps. > > > Maybe this will work: > http://idolinux.blogspot.com/2008/08/xen-add-network-bridge-for-eth1.html > > > try this: > > you need 2 bridge interfaces: > xenbr0 = eth0 > xenbr1 = eth1 > > create a new script with the following lines: (ex: multiplebridge.sh) in > /etc/xen/scripts/ > > #!/bin/sh > dir=$(dirname "$0") > "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1 > > make the script executable (chmod +x /etc/xen/scripts/multiplebridge.sh) > > modify /etc/xen/xend-config.sxp > change the line: > (network-script network-bridge) > to > (network-script multiplebridge.sh) > > modify your virtual machine to use the new bridge interface: > ex: > vif = [ ''bridge=xenbr1'', ] > > Hope this helps. > > /Peter >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2008-Nov-14 09:19 UTC
Re: [Xen-users] How to setup multiple vif''s using different ethernet nic''s for DomU
xen rkar wrote:>My system has two gigabit nic''s. One of them(eth0) is configured to >access the network on dom0. >I want to exclusively use eth1 for the use of my DomU virtual machine.I''ve done this at home for my gateway - I run a router in a DomU and it has exclusive use of the ethernet card with the external connection. Lookup pciback.hide, this is my boot entry (the pciback statement is part of the module line) : title Xen 3.0.3-1-amd64 / Debian 2.6.18-6-xen-amd64 - Ext Eth hidden root (hd0,0) kernel /xen-3.0.3-1-amd64.gz module /vmlinuz-2.6.18-6-xen-amd64 root=/dev/sda3 ro console=tty0 pciback.hide=(01:07.0) module /initrd.img-2.6.18-6-xen-amd64 -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users