Massimiliano De Ruosi
2008-Nov-19 09:20 UTC
[Xen-users] bonding ethernet and xen 3.2.1 or later.
Hello, I''ve just set up xen (3.2.1 on Debian Lenny), enabled network-bridge in xend-config.sxp and all seems to work properly. Then I''ve tried a different setup: first I''ve created a bond device with two phisical nics, but then, installing xen, network stops working! I''ve tried then to change the xend-config.sxp with: (network-script ''network-bridge netdev=bond0'') ...nope Is there anyone able to get xen (>3.2.1) working with bonding? If so, can you point me to the correct way? Maybe I''m searching in the wrong direction (i.e. there are better ways to get ethernet redundancy/load-balancing)? Thanks, Max. ---------------------------------------------------------------------- SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita'' di Udine _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ferenc Wagner
2008-Nov-19 12:04 UTC
[Xen-users] Re: bonding ethernet and xen 3.2.1 or later.
Massimiliano De Ruosi <max.deruosi@uniud.it> writes:> I''ve just set up xen (3.2.1 on Debian Lenny), enabled network-bridge > in xend-config.sxp and all seems to work properly. Then I''ve tried a > different setup: first I''ve created a bond device with two phisical > nics, but then, installing xen, network stops working! > > I''ve tried then to change the xend-config.sxp with: (network-script > ''network-bridge netdev=bond0'') ...nope > > Is there anyone able to get xen (>3.2.1) working with bonding? If so, > can you point me to the correct way?Yes. I use the network-dummy script and do all the bond/bridge setup in /etc/network/interfaces. Works wonderfully. -- Cheers, Feri. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Massimiliano De Ruosi
2008-Nov-19 16:25 UTC
Re: [Xen-users] Re: bonding ethernet and xen 3.2.1 or later.
> Massimiliano De Ruosi <max.deruosi@uniud.it> writes: > >> I''ve just set up xen (3.2.1 on Debian Lenny), enabled network-bridge >> in xend-config.sxp and all seems to work properly. Then I''ve tried a >> different setup: first I''ve created a bond device with two phisical >> nics, but then, installing xen, network stops working! >> >> I''ve tried then to change the xend-config.sxp with: (network-script >> ''network-bridge netdev=bond0'') ...nope >> >> Is there anyone able to get xen (>3.2.1) working with bonding? If so, >> can you point me to the correct way? > > Yes. I use the network-dummy script and do all the bond/bridge setup > in /etc/network/interfaces. Works wonderfully. > -- > Cheers, > Feri.Will you post me (or to the list) your setup? An anonymized extract of your /etc/network/interfaces would be great! Thank you in advance, Max. ---------------------------------------------------------------------- SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita'' di Udine _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ferenc Wagner
2008-Nov-19 17:43 UTC
[Xen-users] Re: bonding ethernet and xen 3.2.1 or later.
Massimiliano De Ruosi <max.deruosi@uniud.it> writes:>> Massimiliano De Ruosi <max.deruosi@uniud.it> writes: >> >>> I''ve just set up xen (3.2.1 on Debian Lenny), enabled network-bridge >>> in xend-config.sxp and all seems to work properly. Then I''ve tried a >>> different setup: first I''ve created a bond device with two phisical >>> nics, but then, installing xen, network stops working! >>> >>> I''ve tried then to change the xend-config.sxp with: (network-script >>> ''network-bridge netdev=bond0'') ...nope >>> >>> Is there anyone able to get xen (>3.2.1) working with bonding? If so, >>> can you point me to the correct way? >> >> Yes. I use the network-dummy script and do all the bond/bridge setup >> in /etc/network/interfaces. Works wonderfully. > > Will you post me (or to the list) your setup? An anonymized extract of > your /etc/network/interfaces would be great!Why not. This is bog-standard, has nothing to do with Xen at all: ----------8<---------- # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto bond0 iface bond0 inet static address 10.253.2.7 netmask 255.255.255.0 gateway 10.253.2.254 slaves eth-gb1 eth-gb2 bond_mode active-backup bond_miimon 100 bond_updelay 4000 bond_primary eth-gb1 auto vlan891 iface vlan891 inet manual vlan_raw_device bond0 auto br891 iface br891 inet manual bridge_ports vlan891 bridge_stp off bridge_fd 0 auto vlan894 iface vlan894 inet manual vlan_raw_device bond0 auto br894 iface br894 inet manual bridge_ports vlan894 bridge_stp off bridge_fd 0 auto vlan897 iface vlan897 inet manual vlan_raw_device bond0 auto br897 iface br897 inet manual bridge_ports vlan897 bridge_stp off bridge_fd 0 ----------8<---------- My two physical interfaces are eth-gb1 and eth-gb2; these names are prescribed by editing /etc/udev/rules.d/70-persistent-net.rules to match the interface names printed on the case. xend-config.sxp contains: (network-script network-dummy) (vif-script vif-bridge) and the domU config files contain lines like: vif = [ ''mac=00:16:3e:01:f0:73, bridge=br894'', ''mac=00:16:3e:01:f0:75, bridge=br897'' ] -- Good luck, Feri. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Massimiliano De Ruosi
2008-Nov-21 17:45 UTC
Re: [Xen-users] Re: bonding ethernet and xen 3.2.1 or later.
Solved! (thank you very much). My setup is much simpler: at this point I''m not using vlans (I''d like to, but I have to hunt for a network admin before: they run away so quickly... ;-)) I tried to simply cut off vlan interfaces in /etc/network/interfaces, substituting bond0 to vlanX in bridge definition, but it didn''t work: dom0 could not ping the gateway. I suppose a route issue (any idea?). The solution for me was to set static ip on the bridge. I post my working setup: maybe it could help someone. ----------8<---------- # The loopback network interface auto lo iface lo inet loopback auto bond0 iface bond0 inet manual slaves eth0 eth1 bond_mode active-backup bond_miimon 100 bond_updelay 4000 bond_primary eth0 auto br0 iface br0 inet static address 192.168.1.106 netmask 255.255.255.0 gateway 192.168.1.1 bridge_ports bond0 bridge_stp off bridge_fd 0 ----------8<---------- This setup is still suboptimal for me: using bond_miimon is ok to detect a nic or a cable failure, but it cannot detect the fail of active path if the link doesn''t go down. Using bond_arp_ip_target (and bond_arp_interval) should be the solution, but it doesn''t work in this configuration. I Keep work on it. As you suggested, xend-config.sxp contains: (network-script network-dummy) (vif-script vif-bridge) I use only one bridge, and one vif for my domU, so the domU config files contains: vif = [ ''mac=00:16:3e:01:f0:73, bridge=br0'' ] Thank you again, Max. Quoting Ferenc Wagner <wferi@niif.hu>:> Massimiliano De Ruosi <max.deruosi@uniud.it> writes: > >>> Massimiliano De Ruosi <max.deruosi@uniud.it> writes: >>> >>>> I''ve just set up xen (3.2.1 on Debian Lenny), enabled network-bridge >>>> in xend-config.sxp and all seems to work properly. Then I''ve tried a >>>> different setup: first I''ve created a bond device with two phisical >>>> nics, but then, installing xen, network stops working! >>>> >>>> I''ve tried then to change the xend-config.sxp with: (network-script >>>> ''network-bridge netdev=bond0'') ...nope >>>> >>>> Is there anyone able to get xen (>3.2.1) working with bonding? If so, >>>> can you point me to the correct way? >>> >>> Yes. I use the network-dummy script and do all the bond/bridge setup >>> in /etc/network/interfaces. Works wonderfully. >> >> Will you post me (or to the list) your setup? An anonymized extract of >> your /etc/network/interfaces would be great! > > Why not. This is bog-standard, has nothing to do with Xen at all: > > ----------8<---------- > # This file describes the network interfaces available on your system > # and how to activate them. For more information, see interfaces(5). > > # The loopback network interface > auto lo > iface lo inet loopback > > # The primary network interface > auto bond0 > iface bond0 inet static > address 10.253.2.7 > netmask 255.255.255.0 > gateway 10.253.2.254 > slaves eth-gb1 eth-gb2 > bond_mode active-backup > bond_miimon 100 > bond_updelay 4000 > bond_primary eth-gb1 > > auto vlan891 > iface vlan891 inet manual > vlan_raw_device bond0 > > auto br891 > iface br891 inet manual > bridge_ports vlan891 > bridge_stp off > bridge_fd 0 > > auto vlan894 > iface vlan894 inet manual > vlan_raw_device bond0 > > auto br894 > iface br894 inet manual > bridge_ports vlan894 > bridge_stp off > bridge_fd 0 > > auto vlan897 > iface vlan897 inet manual > vlan_raw_device bond0 > > auto br897 > iface br897 inet manual > bridge_ports vlan897 > bridge_stp off > bridge_fd 0 > ----------8<---------- > > My two physical interfaces are eth-gb1 and eth-gb2; these names are > prescribed by editing /etc/udev/rules.d/70-persistent-net.rules to > match the interface names printed on the case. > > xend-config.sxp contains: > (network-script network-dummy) > (vif-script vif-bridge) > > and the domU config files contain lines like: > > vif = [ ''mac=00:16:3e:01:f0:73, bridge=br894'', > ''mac=00:16:3e:01:f0:75, bridge=br897'' ] > -- > Good luck, > Feri.---------------------------------------------------------------------- SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita'' di Udine _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ferenc Wagner
2008-Nov-24 23:07 UTC
Re: [Xen-users] Re: bonding ethernet and xen 3.2.1 or later.
Massimiliano De Ruosi <max.deruosi@uniud.it> writes:> I''m not using vlans [...] I tried to simply cut off vlan interfaces > in /etc/network/interfaces, substituting bond0 to vlanX in bridge > definition, but it didn''t work: dom0 could not ping the gateway. I > suppose a route issue (any idea?).You aren''t supposed to directly use (like assign an IP address to) interfaces which are bridge ports, like bond0 in your case. You have to assign the address to the bridge interface, exactly as you did. Notice that in my case bond0 was not a port of any bridge. The "physical" bridge ports were the VLAN interfaces over bond0.> This setup is still suboptimal for me: using bond_miimon is ok to > detect a nic or a cable failure, but it cannot detect the fail of > active path if the link doesn''t go down. Using bond_arp_ip_target > (and bond_arp_interval) should be the solution, but it doesn''t work in > this configuration. I Keep work on it.I never did it myself, but it really should just work. -- Cheers, Feri. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users