So how does one configure multiple network interfaces into multiple bridges on Xen ?
I used to use a self written script for this disabling all Xen scripts and overriding the network script
now I figured out a better way to do this.
I created a small wrapper script that is being called from xenconfig.xsp
more xend-config.sxp | grep wrap
(network-script network-wrapper-bridge)
Which looks like .
#!/bin/sh
/etc/xen/scripts/network-bridge start vifnum=0 netdev=eth0
/etc/xen/scripts/network-bridge start vifnum=1 netdev=eth1
The result is
root@GW-Y scripts# brctl show
bridge name bridge id STP enabled interfaces
xenbr0 8000.feffffffffff no peth0
vif0.0
vif1.0
xenbr1 8000.feffffffffff no peth1
vif0.1
vif1.1