[CentOS] Xen with multiple virtual network interfaces with one bond

Coert Waagmeester lgroups at waagmeester.co.za
Wed Jun 17 12:21:09 UTC 2009


Hello all,

I have been running xen for a while now with two interfaces:
dummy0 for host only communication, and
eth0 for the outside network.

my script looks like this: (/etc/xen/scripts/network-bridge-more)
------------------------------------------------------------------
#! /bin/sh

dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=dummy0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth0 bridge=xenbr1
------------------------------------------------------------------

now i have a newer setup where eth0 and eth1 are bonded.

If i change eth0 in the above script to bond0 it messes up the bond
completely and stops working.

I have use /etc/xen/scripts/network-bridge-bonding, and that works, but
then I can only have one virtual network for my domU

I have tried this:
------------------------------------------------------------------
#! /bin/sh

dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=dummy0 bridge=xenbr0
"$dir/network-bridge-bonding" "$@" vifnum=1 netdev=bond0 bridge=xenbr1
------------------------------------------------------------------

but that also does not work.
It also messes up my bond.

Any tips would be greatly appreciated.

Kind regards,
Coert





More information about the CentOS mailing list