From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Chmielewski Subject: bonding + VLANs -> Oops/panic, no VLAN on 100 Mbit cards [SOLVED] Date: Thu, 24 May 2007 15:23:44 +0200 Message-ID: <465591E0.3070106@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com Cc: "Angel L. Mateo" , =?ISO-8859-2?Q?S=E9bastien_CRAMATTE?= , Timo Benk , amartins@crefidis.fr, Javier Guerra , Eli Criffield , kfh.xen@kfh.dk, Daniele Palumbo List-Id: xen-devel@lists.xenproject.org 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