All of lore.kernel.org
 help / color / mirror / Atom feed
* bonding + VLANs -> Oops/panic, no VLAN on 100 Mbit cards [SOLVED]
@ 2007-05-24 13:23 Tomasz Chmielewski
  0 siblings, 0 replies; only message in thread
From: Tomasz Chmielewski @ 2007-05-24 13:23 UTC (permalink / raw)
  To: xen-users, xen-devel
  Cc: Angel L. Mateo, Sébastien CRAMATTE, Timo Benk, amartins,
	Javier Guerra, Eli Criffield, kfh.xen, Daniele Palumbo

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=xenbr200



One 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-24 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 13:23 bonding + VLANs -> Oops/panic, no VLAN on 100 Mbit cards [SOLVED] Tomasz Chmielewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.