Donny Brooks
2010-Apr-12 21:18 UTC
[Xen-users] Multiple NIC interfaces on different subnets
We have multiple /24 networks here and I need to be able to have machines on at least 2 or 3 of the ranges. The server has 4 NIC ports I can use if needed. What would be the best way to get these /24''s accessible on this machine? I have looked at the http://wiki.xensource.com/xenwiki/XenNetworking page, but I am more lost now! All of my Xen usage up to this point has been on ubuntu 8.04 using Xen version 3.2.1-rc1-pre without libvirt undoubtedly. I tried setting the vlan to the proper one on the switch and plugging another ethernet cable in to the port on the server and "ifup eth1". Then "brctl show" showed the interface but no vif or tap device for it. As shown here: [root@xen domains]# brctl show bridge name bridge id STP enabled interfaces eth0 8000.002564f952c3 no tap4.0 vif4.0 vif3.0 peth0 eth1 8000.002564f952c5 no peth1 virbr0 8000.000000000000 yes [root@xen domains]# Also, my networking went wonky with that interface active and I was unable to install any Domu''s. So I shut the interface down and all went back to normal. Example of what I need to happen: Xen Dom0 is currently running on 10.8.2.XXX All Domu''s are currently running on same 10.8.2.XXX range I need some Domu''s to be on the 10.8.3.XXX and 10.8.8.XXX range Dom0 is running CentOS 5.4 with Xen 3.4.2 from the gitco repo''s. Thanks in advance for any pointers. -- Donny B. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2010-Apr-12 21:58 UTC
Re: [Xen-users] Multiple NIC interfaces on different subnets
Donny Brooks wrote:>We have multiple /24 networks here and I need to be able to have >machines on at least 2 or 3 of the ranges. The server has 4 NIC >ports I can use if needed. What would be the best way to get these >/24''s accessible on this machine?On mine I have network-script set to my-network-script, and my-network-script contains : #!/bin/sh dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=ethbak bridge=ethbak "$dir/network-bridge" "$@" vifnum=1 netdev=ethext bridge=ethext "$dir/network-bridge" "$@" vifnum=1 netdev=ethint bridge=ethint I can then attach any guest to any combination of bridges are required. Dom0 currently has an interface defined on each network, but I believe you can get round that with "if up" to make an interface active but without an IP. This is on a Debian system. -- 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
Donny Brooks
2010-Apr-19 19:38 UTC
Re: [Xen-users] Multiple NIC interfaces on different subnets
So, since I am using libvirt with Xen 3.4.2, when I do a "virsh edit domu" I will replace the line <source bridge=''eth0''/> with <source bridge=''bridgename''/> Correct? I am about ready to pull the trigger on this and get going. Thanks for all the help thus far. -- Donny B. On Monday, April 12, 2010 04:58 PM CDT, Simon Hobson <linux@thehobsons.co.uk> wrote:> Donny Brooks wrote: > >We have multiple /24 networks here and I need to be able to have > >machines on at least 2 or 3 of the ranges. The server has 4 NIC > >ports I can use if needed. What would be the best way to get these > >/24''s accessible on this machine? > > On mine I have network-script set to my-network-script, and > my-network-script contains : > > #!/bin/sh > dir=$(dirname "$0") > "$dir/network-bridge" "$@" vifnum=0 netdev=ethbak bridge=ethbak > "$dir/network-bridge" "$@" vifnum=1 netdev=ethext bridge=ethext > "$dir/network-bridge" "$@" vifnum=1 netdev=ethint bridge=ethint > > I can then attach any guest to any combination of bridges are required. > Dom0 currently has an interface defined on each network, but I > believe you can get round that with "if up" to make an interface > active but without an IP. > > This is on a Debian system. > > -- > 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users