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/
Home Products Support Community News


[Xen-users] Re: bonding ethernet and xen 3.2.1 or later.

To: Massimiliano De Ruosi <max.deruosi@xxxxxxxx>
Subject: [Xen-users] Re: bonding ethernet and xen 3.2.1 or later.
From: Ferenc Wagner <wferi@xxxxxxx>
Date: Wed, 19 Nov 2008 18:43:55 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 19 Nov 2008 09:44:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081119172511.tud3nqe44kww0ccg@xxxxxxxxxxxxxxxx> (Massimiliano De Ruosi's message of "Wed, 19 Nov 2008 17:25:11 +0100")
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>
References: <20081119102017.pbc7adxr4gsggkog@xxxxxxxxxxxxxxxx> <8763mjncqe.fsf@xxxxxxxxxxxxx> <20081119172511.tud3nqe44kww0ccg@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)
Massimiliano De Ruosi <max.deruosi@xxxxxxxx> writes:

>> Massimiliano De Ruosi <max.deruosi@xxxxxxxx> 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:

# 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
        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

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,

Xen-users mailing list