Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Xen & VLANs




On May 2, 2007, at 10:30 AM, Sebastian wrote:

Hi,

ich want to bridge different VLANs to some virtual DomUs. I wired the
Dom0 with a VLAN Trunk and I can create VLAN interfaces in the Dom0.

But I can't add these VLAN interfaces to the bridges connected to the
DomUs. I get a "brconfig: add vlan100: Invalid argument" error. I seems
not possible to add VLAN interfaces to bridges.

Has anybody a hint how to solve this problem?

Works fine here:
# brconfig -a
bridge0: flags=41<UP,RUNNING>
        Configuration:
                priority 32768 hellotime 2 fwddelay 15 maxage 20
                ipfilter disabled flags 0x0
        Interfaces:
                xvif18.0 flags=3<LEARNING,DISCOVER>
                        port 11 priority 128
                xvif3.0 flags=3<LEARNING,DISCOVER>
                        port 10 priority 128
                xvif2.0 flags=3<LEARNING,DISCOVER>
                        port 9 priority 128
                vlan0 flags=3<LEARNING,DISCOVER>
                        port 5 priority 128

/etc/rc.conf has defined:
auto_ifconfig=NO                                # config all avail. interfaces
net_interfaces="re0 wm0 vlan0 bridge0 carp0"    # used only if above is NO

And 
/etc/ifconfig.bridge0 : 

create
!brconfig $int add vlan0
up


Then I define my interfaces in the configs of DOMUs like that:
vif = [ 'mac=aa:00:00:00:01:f0, bridge=bridge0' ]



Marcin Michal Jessa
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'



Home | Main Index | Thread Index | Old Index