This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] e100 + Xen + VLAN -> VLANs don't work [SOLVED]?

To: Timo Benk <timo.benk@xxxxxx>
Subject: Re: [Xen-users] e100 + Xen + VLAN -> VLANs don't work [SOLVED]?
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Wed, 07 Feb 2007 16:16:50 +0100
Cc: Daniele Palumbo <daniele@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 Feb 2007 07:17:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45C356BB.7080104@xxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <45C32545.6060109@xxxxxxxx> <45C34EC2.8000106@xxxxxx> <45C352FB.8030106@xxxxxxxx> <200702021614.08035.daniele@xxxxxxxxxxxx> <45C356BB.7080104@xxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061110 Mandriva/ (2007.1) Thunderbird/ Mnenhy/
Timo Benk wrote:


if you add a vlan to peth0 (whole interface), the bridge xenbr0 (whole interface) will stop working.
at least, it does for me.

Yes, for sure. Seems for me that you did not have a peth0 Interface.

Configure the default bridged setup and try the script again.

If it is still not working for you, i cannot help you any more.

Anything i can say is, the described setup works for me.

All right, finally I found where the problem is.

In the end, it looks like your scripts do pretty much the same what the default Xen "network-bridge" script does.

VLANs work for me on 100 Mbit cards if I *only* use VLAN-tagged interfaces for Xen networking (these scripts achieve more or less what your scripts):

network-bridge start vifnum=1 netdev=eth0.100 bridge=xenbr100

network-bridge start vifnum=2 netdev=eth0.200 bridge=xenbr200

network-bridge start vifnum=3 netdev=eth0.300 bridge=xenbr300

However, I want to use normal, non-tagged networking, too:

network-bridge start vifnum=0 netdev=eth0 bridge=xenbr0

After starting the bridge for eth0/xenbr0, VLANs don't work anymore.

With 1 Gbit cards, I don't have this problem, and I can use a bridge with eth0.

To sum up - I could:

1) 100 Mbit cards + Xen - simultaneously:

- can use domains with VLANs
- can not use domains without VLANs


- can not use domains with VLANs
- can use domains without VLANs

2) 1 Gbit cards + Xen

- can use both VLAN and non-VLAN networking with guest domains

The solution was:

* Do not start a bridge (like xenbr0) for eth0:

#network-bridge start vifnum=0 netdev=eth0 bridge=xenbr0

* Do *not* specify a bridge in configuration of domains that don't use VLANs:

- this one works:

vif    = [ 'ip=, mac=00:16:3E:5B:19:14' ]

- this one will fail:

vif    = [ 'ip=, mac=00:16:3E:5B:19:14', bridge='xenbr0' ]

Tomasz Chmielewski

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>