[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] bonding + VLANs -> Oops/panic, no VLAN on 100 Mbit cards [SOLVED]
As the issue concerns both the -user (configuration) and -devel (OOPS), I'm sending this message to both lists. Some time ago I complained about two problems: - VLANs are not working on machines with 100 Mbit cards- I get a kernel Oops (sometimes panic) when I try to use bonding and VLANs with Xen The root of the issue is the same in both cases: VLAN interfaces must *not* be brought up before we start our Xen network scripts. So have four cases with Xen: 1. Bonding + VLAN leads to an Oops 2. Bonding + VLAN works 3. VLANs don't work with 100 Mbit cards 4. VLANs work with 100 Mbit cards I use network-bridge script shipped with Xen 3.1. 1. Bonding + VLAN leads to an Oops: ifup bond0 ifup bond0.100 ifup bond0.200 ./network-bridge start vifnum=0 netdev=bond0 bridge=xenbr0 ./network-bridge start vifnum=1 netdev=bond0.100 bridge=xenbr100 # Ooops (and/or panic) here! ./network-bridge start vifnum=2 netdev=bond0.200 bridge=xenbr200 2. Bonding + VLAN works - note the "enslave": ifup bond0 ./network-bridge start vifnum=0 netdev=bond0 bridge=xenbr0 ifenslave pbond0 eth0 eth1 ifup bond0.100 ifup bond0.200 ./network-bridge start vifnum=1 netdev=bond0.100 bridge=xenbr100 ./network-bridge start vifnum=2 netdev=bond0.200 bridge=xenbr200 3. VLANs don't work with 100 Mbit cards (with 1 Gbit will work): ifup eth0 ifup eth0.100 ifup eth0.200 ./network-bridge start vifnum=0 netdev=eth0 bridge=xenbr0 ./network-bridge start vifnum=1 netdev=eth0.100 bridge=xenbr100 ./network-bridge start vifnum=2 netdev=eth0.200 bridge=xenbr200 4. VLANs work with 100 Mbit cards ifup eth0 ./network-bridge start vifnum=0 netdev=eth0 bridge=xenbr0 ifup eth0.100 ifup eth0.200 ./network-bridge start vifnum=1 netdev=eth0.100 bridge=xenbr100 ./network-bridge start vifnum=2 netdev=eth0.200 bridge=xenbr200One more note: to use it in startup scripts, I had to put a couple of "sleep" commands between each line - otherwise, some peth/pbond interfaces were missing sometimes. -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |