John Rounds
2011-Mar-21 19:46 UTC
[Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one that connects dom0 and most of the domU to the physical card and the out to the network. Got that figured out no problem, now i want to have a second bridge that runs a local network for all the doms that doesn''t connect to the network. With code I have found used in multiple places I can easily get 2 bridges, and have all the Domu connected to it but i can''t get Dom 0 to have an interface. Script to set up bridges called fine from xend-config.sxp ]# cat multiple-bridge> #!/bin/sh > dir=$(dirname "$0") > "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > "$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1Out put from brctl show> bridge name bridge id STP enabled interfaces > xenbr0 8000.feffffffffff no vif1.0 > > peth0 > > vif0.0 > xenbrloc1 8000.feffffffffff no vif2.0 > > vif1.1Output of ifconfig eth0 Link encap:Ethernet HWaddr 48:5B:39:17:09:73 inet addr:192.168.1.119 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::4a5b:39ff:fe17:973/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:392 errors:0 dropped:0 overruns:0 frame:0 TX packets:363 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:104964 (102.5 KiB) TX bytes:50630 (49.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:140044 errors:0 dropped:0 overruns:0 frame:0 TX packets:140044 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:87780902 (83.7 MiB) TX bytes:87780902 (83.7 MiB) peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:311531 errors:0 dropped:0 overruns:0 frame:0 TX packets:46014 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:73445358 (70.0 MiB) TX bytes:5556591 (5.2 MiB) Interrupt:16 Base address:0xe000 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:40325 errors:0 dropped:0 overruns:0 frame:0 TX packets:299826 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5015081 (4.7 MiB) TX bytes:54011703 (51.5 MiB) vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:9152 errors:0 dropped:0 overruns:0 frame:0 TX packets:16963 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:1064334 (1.0 MiB) TX bytes:20750937 (19.7 MiB) vif1.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:13 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:580 (580.0 b) TX bytes:762 (762.0 b) vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:580 (580.0 b) TX bytes:0 (0.0 b) xenbrloc1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1160 (1.1 KiB) TX bytes:0 (0.0 b) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:268045 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:46171788 (44.0 MiB) TX bytes:0 (0.0 b) Any help or guidance would be appreciated John _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2011-Mar-21 21:35 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
John Rounds wrote:>So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, >one that connects dom0 and most of the domU to the physical card and >the out to the network. Got that figured out no problem, now i want >to have a second bridge that runs a local network for all the doms >that doesn''t connect to the network. > >With code I have found used in multiple places I can easily get 2 >bridges, and have all the Domu connected to it but i can''t get Dom 0 >to have an interface. > >Script to set up bridges called fine from xend-config.sxp > >]# cat multiple-bridge >#!/bin/sh >dir=$(dirname "$0") >"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 >"$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1I''d suggest you setup the local bridge manually - not in Xen. Is this Debian ? If so then you can put something like this in /etc/network/interfaces - check the syntax, I''m typing this from memory : auto xenbrloc1 xenbrloc1 inet static ip address a.b.c.d netmask w.x.y.z pre-up brctl addbr xenbrloc1 post-down brctl delbr xenbrloc1 I think this should work for you. What happens is that when the I/F is brought up, the bridge is created first (pre-up), and then the IP addr is added to it. The bridge is automatically deleted if the I/F is taken down. For other distros you''ll need to adapt as required. -- 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
JP P
2011-Mar-21 23:21 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
Le lundi 21 mars 2011 à 14:46 -0500, John Rounds a écrit :> So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one > that connects dom0 and most of the domU to the physical card and the > out to the network. Got that figured out no problem, now i want to > have a second bridge that runs a local network for all the doms that > doesn''t connect to the network. > > > With code I have found used in multiple places I can easily get 2 > bridges, and have all the Domu connected to it but i can''t get Dom 0 > to have an interface. > > > Script to set up bridges called fine from xend-config.sxp > > > ]# cat multiple-bridge > #!/bin/sh > dir=$(dirname "$0") > "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > "$dir/network-bridge" "$@" vifnum=2 netdev=dummy > bridge=xenbrloc1 > > > > > Out put from brctl show > bridge name bridge id STP enabled > interfaces > xenbr0 8000.feffffffffff no > vif1.0 > > peth0 > > vif0.0 > xenbrloc1 8000.feffffffffff no > vif2.0 > > vif1.1 > > > > > > Output of ifconfig > > eth0 Link encap:Ethernet HWaddr 48:5B:39:17:09:73 > inet addr:192.168.1.119 Bcast:192.168.1.255 > Mask:255.255.255.0 > inet6 addr: fe80::4a5b:39ff:fe17:973/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:392 errors:0 dropped:0 overruns:0 frame:0 > TX packets:363 errors:0 dropped:0 overruns:0 > carrier:0 > collisions:0 txqueuelen:0 > RX bytes:104964 (102.5 KiB) TX bytes:50630 (49.4 > KiB) > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:140044 errors:0 dropped:0 overruns:0 > frame:0 > TX packets:140044 errors:0 dropped:0 overruns:0 > carrier:0 > collisions:0 txqueuelen:0 > RX bytes:87780902 (83.7 MiB) TX bytes:87780902 > (83.7 MiB) > peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:311531 errors:0 dropped:0 overruns:0 > frame:0 > TX packets:46014 errors:0 dropped:0 overruns:0 > carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:73445358 (70.0 MiB) TX bytes:5556591 (5.2 > MiB) > Interrupt:16 Base address:0xe000 > vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:40325 errors:0 dropped:0 overruns:0 > frame:0 > TX packets:299826 errors:0 dropped:0 overruns:0 > carrier:0 > collisions:0 txqueuelen:0 > RX bytes:5015081 (4.7 MiB) TX bytes:54011703 (51.5 > MiB) > vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:9152 errors:0 dropped:0 overruns:0 > frame:0 > TX packets:16963 errors:0 dropped:0 overruns:0 > carrier:0 > collisions:0 txqueuelen:32 > RX bytes:1064334 (1.0 MiB) TX bytes:20750937 (19.7 > MiB) > vif1.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:13 errors:0 dropped:0 overruns:0 frame:0 > TX packets:13 errors:0 dropped:0 overruns:0 > carrier:0 > collisions:0 txqueuelen:32 > RX bytes:580 (580.0 b) TX bytes:762 (762.0 b) > vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:13 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:32 > RX bytes:580 (580.0 b) TX bytes:0 (0.0 b) > xenbrloc1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:26 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:1160 (1.1 KiB) TX bytes:0 (0.0 b) > xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 > RX packets:268045 errors:0 dropped:0 overruns:0 > frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:46171788 (44.0 MiB) TX bytes:0 (0.0 b) >Hello, To declare a bridge in Debian (/etc/network/interfaces) : auto br0 iface br0 inet static address 192.168.1.8 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 mtu 1500 txqueuelen 4096 gateway 192.168.1.11 bridge_ports eth0 Regards JP P _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Mar-22 13:36 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
On Mon, Mar 21, 2011 at 5:35 PM, Simon Hobson <linux@thehobsons.co.uk> wrote:> John Rounds wrote: >> >> So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one >> that connects dom0 and most of the domU to the physical card and the out to >> the network. Got that figured out no problem, now i want to have a second >> bridge that runs a local network for all the doms that doesn''t connect to >> the network. >> >> With code I have found used in multiple places I can easily get 2 bridges, >> and have all the Domu connected to it but i can''t get Dom 0 to have an >> interface. >> >> Script to set up bridges called fine from xend-config.sxp >> >> ]# cat multiple-bridge >> #!/bin/sh >> dir=$(dirname "$0") >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 >> "$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1 > > I''d suggest you setup the local bridge manually - not in Xen. >Good suggestion. We have documentation and notes on this, since this is the way Xen 4.1+ will work. See: http://wiki.xensource.com/xenwiki/HostConfiguration/Networking http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B Thanks, Todd> Is this Debian ? If so then you can put something like this in > /etc/network/interfaces - check the syntax, I''m typing this from memory : > > auto xenbrloc1 > xenbrloc1 inet static > ip address a.b.c.d > netmask w.x.y.z > pre-up brctl addbr xenbrloc1 > post-down brctl delbr xenbrloc1 > > I think this should work for you. What happens is that when the I/F is > brought up, the bridge is created first (pre-up), and then the IP addr is > added to it. The bridge is automatically deleted if the I/F is taken down. > > For other distros you''ll need to adapt as required. > > -- > 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 >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Rounds
2011-Mar-22 18:43 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
I think this might be the answer I needed Todd, Going to give it a try soon. On Tue, Mar 22, 2011 at 8:36 AM, Todd Deshane <todd.deshane@xen.org> wrote:> On Mon, Mar 21, 2011 at 5:35 PM, Simon Hobson <linux@thehobsons.co.uk> > wrote: > > John Rounds wrote: > >> > >> So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one > >> that connects dom0 and most of the domU to the physical card and the out > to > >> the network. Got that figured out no problem, now i want to have a > second > >> bridge that runs a local network for all the doms that doesn''t connect > to > >> the network. > >> > >> With code I have found used in multiple places I can easily get 2 > bridges, > >> and have all the Domu connected to it but i can''t get Dom 0 to have an > >> interface. > >> > >> Script to set up bridges called fine from xend-config.sxp > >> > >> ]# cat multiple-bridge > >> #!/bin/sh > >> dir=$(dirname "$0") > >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > >> "$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1 > > > > I''d suggest you setup the local bridge manually - not in Xen. > > > > Good suggestion. We have documentation and notes on this, since this > is the way Xen 4.1+ will work. > > See: > http://wiki.xensource.com/xenwiki/HostConfiguration/Networking > http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B > > Thanks, > Todd > > > Is this Debian ? If so then you can put something like this in > > /etc/network/interfaces - check the syntax, I''m typing this from memory : > > > > auto xenbrloc1 > > xenbrloc1 inet static > > ip address a.b.c.d > > netmask w.x.y.z > > pre-up brctl addbr xenbrloc1 > > post-down brctl delbr xenbrloc1 > > > > I think this should work for you. What happens is that when the I/F is > > brought up, the bridge is created first (pre-up), and then the IP addr is > > added to it. The bridge is automatically deleted if the I/F is taken > down. > > > > For other distros you''ll need to adapt as required. > > > > -- > > 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 > > > > > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Carlos
2011-Mar-23 11:25 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
Debian/Ubuntu /etc/network/interfaces config to setup dom0 internal network interface(bridge dummy). Load kernel module. modprobe dummy /etc/network/interfaces auto dummy0 iface dummy0 inet manual pre-up ifconfig $IFACE up post-down ifconfig $IFACE down auto lan-xen-ofi iface lan-xen-ofi inet manual bridge_ports dummy0 bridge_maxwait 0 bridge_stp off 2011/3/22 John Rounds <vannion@gmail.com>> I think this might be the answer I needed Todd, Going to give it a try > soon. > > > On Tue, Mar 22, 2011 at 8:36 AM, Todd Deshane <todd.deshane@xen.org>wrote: > >> On Mon, Mar 21, 2011 at 5:35 PM, Simon Hobson <linux@thehobsons.co.uk> >> wrote: >> > John Rounds wrote: >> >> >> >> So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one >> >> that connects dom0 and most of the domU to the physical card and the >> out to >> >> the network. Got that figured out no problem, now i want to have a >> second >> >> bridge that runs a local network for all the doms that doesn''t connect >> to >> >> the network. >> >> >> >> With code I have found used in multiple places I can easily get 2 >> bridges, >> >> and have all the Domu connected to it but i can''t get Dom 0 to have an >> >> interface. >> >> >> >> Script to set up bridges called fine from xend-config.sxp >> >> >> >> ]# cat multiple-bridge >> >> #!/bin/sh >> >> dir=$(dirname "$0") >> >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 >> >> "$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1 >> > >> > I''d suggest you setup the local bridge manually - not in Xen. >> > >> >> Good suggestion. We have documentation and notes on this, since this >> is the way Xen 4.1+ will work. >> >> See: >> http://wiki.xensource.com/xenwiki/HostConfiguration/Networking >> http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B >> >> Thanks, >> Todd >> >> > Is this Debian ? If so then you can put something like this in >> > /etc/network/interfaces - check the syntax, I''m typing this from memory >> : >> > >> > auto xenbrloc1 >> > xenbrloc1 inet static >> > ip address a.b.c.d >> > netmask w.x.y.z >> > pre-up brctl addbr xenbrloc1 >> > post-down brctl delbr xenbrloc1 >> > >> > I think this should work for you. What happens is that when the I/F is >> > brought up, the bridge is created first (pre-up), and then the IP addr >> is >> > added to it. The bridge is automatically deleted if the I/F is taken >> down. >> > >> > For other distros you''ll need to adapt as required. >> > >> > -- >> > 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 >> > >> >> >> >> -- >> Todd Deshane >> http://www.linkedin.com/in/deshantm >> http://www.xen.org/products/cloudxen.html >> > > > _______________________________________________ > 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
Todd Deshane
2011-Mar-23 14:58 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
On Wed, Mar 23, 2011 at 11:25 AM, Carlos <cechevarne@gmail.com> wrote:> Debian/Ubuntu /etc/network/interfaces config to setup dom0 internal network > interface(bridge dummy). > > Load kernel module. > > modprobe dummy > > /etc/network/interfaces > > auto dummy0 > iface dummy0 inet manual > pre-up ifconfig $IFACE up > post-down ifconfig $IFACE down > > auto lan-xen-ofi > iface lan-xen-ofi inet manual > bridge_ports dummy0 > bridge_maxwait 0 > bridge_stp off > >Carlos: do you feel this type of information should be added to the wiki http://wiki.xensource.com/xenwiki/HostConfiguration/Networking If so, let me know your username on the wiki (i can add you to the editors group) if you would like to help shape this page. Thanks, Todd> 2011/3/22 John Rounds <vannion@gmail.com> >> >> I think this might be the answer I needed Todd, Going to give it a try >> soon. >> >> On Tue, Mar 22, 2011 at 8:36 AM, Todd Deshane <todd.deshane@xen.org> >> wrote: >>> >>> On Mon, Mar 21, 2011 at 5:35 PM, Simon Hobson <linux@thehobsons.co.uk> >>> wrote: >>> > John Rounds wrote: >>> >> >>> >> So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges, one >>> >> that connects dom0 and most of the domU to the physical card and the >>> >> out to >>> >> the network. Got that figured out no problem, now i want to have a >>> >> second >>> >> bridge that runs a local network for all the doms that doesn''t connect >>> >> to >>> >> the network. >>> >> >>> >> With code I have found used in multiple places I can easily get 2 >>> >> bridges, >>> >> and have all the Domu connected to it but i can''t get Dom 0 to have an >>> >> interface. >>> >> >>> >> Script to set up bridges called fine from xend-config.sxp >>> >> >>> >> ]# cat multiple-bridge >>> >> #!/bin/sh >>> >> dir=$(dirname "$0") >>> >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 >>> >> "$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1 >>> > >>> > I''d suggest you setup the local bridge manually - not in Xen. >>> > >>> >>> Good suggestion. We have documentation and notes on this, since this >>> is the way Xen 4.1+ will work. >>> >>> See: >>> http://wiki.xensource.com/xenwiki/HostConfiguration/Networking >>> http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B >>> >>> Thanks, >>> Todd >>> >>> > Is this Debian ? If so then you can put something like this in >>> > /etc/network/interfaces - check the syntax, I''m typing this from memory >>> > : >>> > >>> > auto xenbrloc1 >>> > xenbrloc1 inet static >>> > ip address a.b.c.d >>> > netmask w.x.y.z >>> > pre-up brctl addbr xenbrloc1 >>> > post-down brctl delbr xenbrloc1 >>> > >>> > I think this should work for you. What happens is that when the I/F is >>> > brought up, the bridge is created first (pre-up), and then the IP addr >>> > is >>> > added to it. The bridge is automatically deleted if the I/F is taken >>> > down. >>> > >>> > For other distros you''ll need to adapt as required. >>> > >>> > -- >>> > 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 >>> > >>> >>> >>> >>> -- >>> Todd Deshane >>> http://www.linkedin.com/in/deshantm >>> http://www.xen.org/products/cloudxen.html >> >> >> _______________________________________________ >> 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 >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Rounds
2011-Mar-23 16:47 UTC
Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
The CentOS information contianed here: http://wiki.xensource.com/xenwiki/HostConfiguration/Networking http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B did the trick Thanks all On Wed, Mar 23, 2011 at 9:58 AM, Todd Deshane <todd.deshane@xen.org> wrote:> On Wed, Mar 23, 2011 at 11:25 AM, Carlos <cechevarne@gmail.com> wrote: >> Debian/Ubuntu /etc/network/interfaces config to setup dom0 internalnetwork>> interface(bridge dummy). >> >> Load kernel module. >> >> modprobe dummy >> >> /etc/network/interfaces >> >> auto dummy0 >> iface dummy0 inet manual >> pre-up ifconfig $IFACE up >> post-down ifconfig $IFACE down >> >> auto lan-xen-ofi >> iface lan-xen-ofi inet manual >> bridge_ports dummy0 >> bridge_maxwait 0 >> bridge_stp off >> >> > > > Carlos: do you feel this type of information should be added to the wiki > http://wiki.xensource.com/xenwiki/HostConfiguration/Networking > > If so, let me know your username on the wiki (i can add you to the > editors group) if you would like to help shape this page. > > Thanks, > Todd > >> 2011/3/22 John Rounds <vannion@gmail.com> >>> >>> I think this might be the answer I needed Todd, Going to give it a try >>> soon. >>> >>> On Tue, Mar 22, 2011 at 8:36 AM, Todd Deshane <todd.deshane@xen.org> >>> wrote: >>>> >>>> On Mon, Mar 21, 2011 at 5:35 PM, Simon Hobson <linux@thehobsons.co.uk> >>>> wrote: >>>> > John Rounds wrote: >>>> >> >>>> >> So Working on CEntOS 5 I am trying to sett up Xen with 2 bridges,one>>>> >> that connects dom0 and most of the domU to the physical card and the >>>> >> out to >>>> >> the network. Got that figured out no problem, now i want to have a >>>> >> second >>>> >> bridge that runs a local network for all the doms that doesn''tconnect>>>> >> to >>>> >> the network. >>>> >> >>>> >> With code I have found used in multiple places I can easily get 2 >>>> >> bridges, >>>> >> and have all the Domu connected to it but i can''t get Dom 0 to havean>>>> >> interface. >>>> >> >>>> >> Script to set up bridges called fine from xend-config.sxp >>>> >> >>>> >> ]# cat multiple-bridge >>>> >> #!/bin/sh >>>> >> dir=$(dirname "$0") >>>> >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 >>>> >> "$dir/network-bridge" "$@" vifnum=2 netdev=dummy bridge=xenbrloc1 >>>> > >>>> > I''d suggest you setup the local bridge manually - not in Xen. >>>> > >>>> >>>> Good suggestion. We have documentation and notes on this, since this >>>> is the way Xen 4.1+ will work. >>>> >>>> See: >>>> http://wiki.xensource.com/xenwiki/HostConfiguration/Networking >>>> http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B >>>> >>>> Thanks, >>>> Todd >>>> >>>> > Is this Debian ? If so then you can put something like this in >>>> > /etc/network/interfaces - check the syntax, I''m typing this frommemory>>>> > : >>>> > >>>> > auto xenbrloc1 >>>> > xenbrloc1 inet static >>>> > ip address a.b.c.d >>>> > netmask w.x.y.z >>>> > pre-up brctl addbr xenbrloc1 >>>> > post-down brctl delbr xenbrloc1 >>>> > >>>> > I think this should work for you. What happens is that when the I/Fis>>>> > brought up, the bridge is created first (pre-up), and then the IPaddr>>>> > is >>>> > added to it. The bridge is automatically deleted if the I/F is taken >>>> > down. >>>> > >>>> > For other distros you''ll need to adapt as required. >>>> > >>>> > -- >>>> > 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 >>>> > >>>> >>>> >>>> >>>> -- >>>> Todd Deshane >>>> http://www.linkedin.com/in/deshantm >>>> http://www.xen.org/products/cloudxen.html >>> >>> >>> _______________________________________________ >>> 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 >> > > > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users