[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Xen Bonding Network Connections



I've successfully done this.

it's fairly easy:
 * in gentoo make net.bond0 and net.bond1 and in xen use bond0 instead of 
eth0, call the bridge also bond0.

diff for bonding to work:

renaming the interface did not work, so i deleted and recreated it; that also 
didn't work, because my dom0 has no ip address on the bond, so this is the 
fix:

--- /etc/xen/scripts/._cfg0000_network-bridge   2009-10-23 15:42:37.000000000 
+0200
+++ /etc/xen/scripts/network-bridge     2009-10-19 14:23:09.870223434 +0200
@@ -111,7 +111,9 @@
             # use the info from get_ip_info()
             ip addr flush $1
             ip addr add ${addr_pfx} dev $1
-            ip link set dev $1 up
+       fi
+        ip link set dev $1 up
+        if [ -n "$addr_pfx" ] ; then
             [ -n "$gateway" ] && ip route add default via ${gateway}
         fi
     fi
@@ -226,6 +228,7 @@
     # Remember slaves for bonding interface.
     if [ -e /sys/class/net/${netdev}/bonding/slaves ]; then
        slaves=`cat /sys/class/net/${netdev}/bonding/slaves`
+       ifenslave -d ${netdev} ${slaves}
     fi
     # Remember the IP details for do_ifup.
     get_ip_info ${netdev}


Sincerely,

Maarten

Op Tuesday 27 October 2009 14:16:55 schreef Joseph Coleman:
> I am looking to establish a network bond for local traffic and one for the
> xen traffic before the bridge is created. When bonding the ports can the
> Cisco switch ports also be bundled as well so I have redundancy there as
> well or will this cause a problem?
>
> Thanks in advance



-- 
BA N.V. - http://www.ba.be

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
-- 
BA N.V. - http://www.ba.be

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.