WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] VLANs with Xen - work with 1 Gbit, doesn't with 100 Mbit car

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] VLANs with Xen - work with 1 Gbit, doesn't with 100 Mbit cards?
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Fri, 02 Feb 2007 19:35:11 +0100
Delivery-date: Fri, 02 Feb 2007 10:35:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
I have a strange problem with VLANs with Xen 3.0.4. I signalled it on
Xen-users list, but found no definitive solution to it.

I configure VLANs so that they are available in dom0; domUs don't know
that they use VLANs.


I use a stock "network-bridge" comming from Xen for setting up networking:


#!/bin/bash
dir=$(dirname "$0")

"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0

"$dir/network-bridge" "$@" vifnum=1 netdev=eth0.100 bridge=xenbr100

"$dir/network-bridge" "$@" vifnum=2 netdev=eth0.200 bridge=xenbr200



If the server has a 1 Gbit network card (e1000, tg3 module), VLANs work
flawlessly.

If, however, I replace the card, and use a 100 Mbit one (Intel/e100 or
Realtek/8139too module), and don't change the scripts, VLANs are not
working.


Why is it so? What is so fundamental in Xen networking that VLANs
behaviour change so much whether one uses a 1 Gbit, or 100 Mbit network
cards?


There is one difference between 1 Gbit and 100 Mbit cards - 100 Mbit
cards won't allow to set the MTU bigger than 1500:

# ifconfig eth1 mtu 1501
SIOCSIFMTU: Invalid argument


But I'm not sure if it has anything with the described VLAN problem.

On the other hand, if I configure VLANs in domU, it works fine then (but
it's a bad approach for me, and prefer to have VLANs in dom0 only).


--
Tomasz Chmielewski
http://wpkg.org


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] VLANs with Xen - work with 1 Gbit, doesn't with 100 Mbit cards?, Tomasz Chmielewski <=