Mark Doll | 2 May 2005 14:59
X-Face
Picon
Favicon

Re: multiple vif's/bridges

Hi Andrew!

andrew mathes wrote:
> i'm confused what the "mac" paramater on vif's in the startup
> configuration file for a domain does.
> 
> i have this in my configuration file:
> vif = [ 'mac=aa:00:00:1a:%d:11' % (vmid), 'bridge=xen-br0']
> vif = [ 'mac=aa:00:00:1a:%d:12' % (vmid), 'bridge=xen-br1']
> 
> and while my REAL question is why this doesn't bind the second vif to
> bridge1,

The first time I used xen, I thought all this would happen
automagically. Butwhen I figured out (like you) that this is not true,
so I started to configure everything outside of xen's startup scripts in
advance of creating domains:

1. Create all the bridge devices that are mentioned in xenU
configuration files; since xen-br0 is already there, in your case only
xen-br1 has to be created:

brctl addbr xen-br1
brctl stp xen-br1 off
brctl setfd xen-br1 0
ip link set xen-br1 up

I disable spanning tree since normally it causes more problems than it
solves and it unnecessarily delays the initial forwarding. When the
domUs boot, their eth0, eth1 etc. are added to the bridges as specified
(Continue reading)


Gmane