Rogelio Bazan
2011-Jul-29 18:04 UTC
[Xen-users] my eth3 lost connectivity when the xenbridge is setup
hi All, yesterday, i did yum update to my xen host.... i have 4 ethernet devices: eth0,1,2,3. eth0 and eth1 are slaves of bond0. Bond0 is trunked and it as 3 different ip addresses on different subnets: bon0.42, bond0.43 and bond0.44 eth2 is a private network eth3 is a different subnet, not trunked. After yum update completed, i reboot the host and all was ok, until xend started.... doing some researchm i found that the problem was only with eth3 after enabling xenbr for it.... For that i use a script which is called from /etc/xen/xend-config.sxp (when xend starts): /etc/xen/scripts/multi-network-bridge: #!/bin/sh # vconfig set_name_type DEV_PLUS_VID_NO_PAD dir=$(dirname "$0") #------------------------------------------------------------------------- /etc/xen/scripts/network-bridge $@ vifnum=1 bridge=xenbr2 netdev=bond0.42 /etc/xen/scripts/network-bridge $@ vifnum=2 bridge=xenbr3 netdev=bond0.43 /etc/xen/scripts/network-bridge $@ vifnum=3 bridge=xenbr4 netdev=bond0.44 ##/etc/xen/scripts/network-bridge $@ vifnum=5 bridge=xenbr1 netdev=eth3 #------------------------------------------------------------------------- For now, i commented out the last line, which is giving problems. the other bridges works fine. Does anybody have idea of what''s going on? I''m a little bit desperate Thanx! -- Rogelio Bazan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Carsten from Virtastic
2011-Jul-29 18:46 UTC
Re: [Xen-users] my eth3 lost connectivity when the xenbridge is setup
Hi Rogelio,> After yum update completed, i reboot the host and all was ok, until xend started.... > doing some researchm i found that the problem was only with eth3 after enabling xenbr for it....What does "brctl show" say?> ##/etc/xen/scripts/network-bridge $@ vifnum=5 bridge=xenbr1 netdev=eth3Create these two files in /etc/sysconfig/network-scripts: ifcfg-xenbr1: TYPE=Bridge DEVICE=xenbr1 ONBOOT=yes STP=off BOOTPROTO=none (or if you want the bridge to have an IP, which might make sense for testing, use IPADDR and NETMASK together with BOOTPROTO=static) ifcfg-eth3: DEVICE=eth3 BRIDGE=xenbr1 HWADDR=<your_MAC_address> BOOTPROTO=none ONBOOT=yes Then: ifup xenbr1 ifup eth3 ...and then you wait a few second until the bridge leaves learning state and enters forwarding state, and you should be all set. I''d recommend to comment out all occurrences of # (network-script network-bridge) in /etc/xen/xend-config.sxp, and then let the OS deal with the interface and bridge setup as shown above. I believe the wiki suggests the same for Xen 4.1 (if not earlier versions), which doesn''t actually need xend any more anyway. Cheers Carsten _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users