WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Xen Bonding Network Connections

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen Bonding Network Connections
From: Maarten Vanraes <maarten@xxxxx>
Date: Tue, 27 Oct 2009 17:06:19 +0200
Cc: Joseph Coleman <joe.coleman@xxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 27 Oct 2009 08:08:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: BA
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>