Robert Dunkley
2008-Aug-08 08:59 UTC
[Xen-users] Centos 5.2, Xen 3.2.1 and Bridge Problems
I''m running Centos 5.2 with Xen 3.2.1 installed. The default bridge config of attaching "virbr0" to eth/peth0 works but I need to create two bridges, one on eth0 and one on eth1. I have tried the script here: http://www.centos.org/docs/5/html/5.1/Virtualization_Guide/ch-virt-bridg e-errors.html It does nothing different on startup (Despite editing Xend-config.sxp). If I manually execute it with ./script start then it kills all network connections to the server. I have reset the server to its default single bridge config, does anyone know how to get two bridges up and running? Below are details of the working default single bridge config. Thanks, Rob Brctl show: bridge name bridge id STP enabled interfaces eth1 8000.00e081b24ef9 no peth1 virbr0 8000.000000000000 yes Ifconfig -a: eth0 Link encap:Ethernet HWaddr 00:E0:81:B2:4E:F8 inet addr:192.168.2.160 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Memory:dffe0000-e0000000 eth1 Link encap:Ethernet HWaddr 00:E0:81:B2:4E:F9 inet addr:10.0.0.160 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:81ff:feb2:4ef9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:398 errors:0 dropped:0 overruns:0 frame:0 TX packets:84 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:24373 (23.8 KiB) TX bytes:16454 (16.0 KiB) ib0 Link encap:InfiniBand HWaddr 80:00:04:04:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 inet addr:192.168.10.160 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::202:c902:22:d451/64 Scope:Link UP BROADCAST RUNNING MTU:32768 Metric:1 RX packets:114 errors:0 dropped:0 overruns:0 frame:0 TX packets:157 errors:0 dropped:11 overruns:0 carrier:0 collisions:0 txqueuelen:256 RX bytes:6768 (6.6 KiB) TX bytes:15314 (14.9 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) peth1 Link encap:Ethernet HWaddr 00:E0:81:B2:4E:F9 inet6 addr: fe80::2e0:81ff:feb2:4ef9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:548 errors:0 dropped:0 overruns:0 frame:0 TX packets:154 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:39709 (38.7 KiB) TX bytes:32376 (31.6 KiB) Memory:dff80000-dffa0000 sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 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:0 (0.0 b) TX bytes:0 (0.0 b) virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:35 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:9173 (8.9 KiB) The SAQ Group Registered Office: 18 Chapel Street, Petersfield, Hampshire. GU32 3DZ SEMTEC Limited trading as SAQ is Registered in England & Wales Company Number: 06481952 http://www.saqnet.co.uk AS29219 SAQ Group Delivers high quality, honestly priced communication and I.T. services to UK Business. DSL : Domains : Email : Hosting : CoLo : Servers : Racks : Transit : Backups : Managed Networks : Remote Support. Find us in http://www.thebestof.co.uk/petersfield _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
nathan@robotics.net
2008-Aug-08 09:42 UTC
Re: [Xen-users] Centos 5.2, Xen 3.2.1 and Bridge Problems
On Fri, 8 Aug 2008, Robert Dunkley wrote:> I''m running Centos 5.2 with Xen 3.2.1 installed. The default bridge > config of attaching "virbr0" to eth/peth0 works but I need to create two > bridges, one on eth0 and one on eth1.You can just use ifcfg scrips in /etc/sysconfig/network-scrips, as an example I have: [root@xen0 network-scripts]# more ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=none BRIDGE=private HWADDR=00:30:48:7D:66:CA [root@xen0 network-scripts]# more ifcfg-private DEVICE=private ONBOOT=YES BOOTPROTO=static IPADDR=10.11.0.220 NETMASK=255.255.255.0 GATEWAY=10.11.0.1 TYPE=Bridge [root@xen0 network-scripts]# more ifcfg-eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=none BRIDGE=public HWADDR=00:30:48:7D:66:CB [root@xen0 network-scripts]# more ifcfg-public DEVICE=public ONBOOT=YES BOOTPROTO=none TYPE=Bridge I could have used an IP address for ifcfg-public, but the xen0 box only needs access to the private segment. My DomUs then access public and private bridges.><>Nathan Stratton CTO, BlinkMind, Inc. nathan at robotics.net nathan at blinkmind.com http://www.robotics.net http://www.blinkmind.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users