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-users

Re: [Xen-users] can't get multiple VLANs to work

To: Sébastien CRAMATTE <s.cramatte@xxxxxxxxxx>
Subject: Re: [Xen-users] can't get multiple VLANs to work
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Thu, 31 Aug 2006 10:36:22 +0200
Cc: "Angel L. Mateo" <amateo@xxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 31 Aug 2006 01:37:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44F69DB3.8040904@xxxxxxxxxx>
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: <44F465E3.8080107@xxxxxxxx> <44F4E26B.6030602@xxxxxxxxxx> <44F54CA0.1010504@xxxxxxxx> <1157006480.31022.17.camel@localhost> <44F69C41.8070401@xxxxxxxx> <44F69DB3.8040904@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (X11/20060814)
Sébastien CRAMATTE wrote:
Tomasz Chmielewski a écrit :
Angel L. Mateo wrote:
Hello,

    I have Xen running with domUs in different VLAN's. I have xen on a
debian sarge server. My configuration is:

* In dom0, I have a bridge for each vlan (different than the native vlan
of interface eth0, that I don't need to tag). For each vlan the
configuration is (for vlan 302):

vconfig add eth0 302
/etc/xen/scripts/network-bridge start netdev=eth0.302 bridge=xen-br302
antispoof=no
/sbin/ifconfig eth0.302 up

* In the domU the configuration I have is:

vif = [ 'bridge=xen-br302' ]

* The only problem is that un domU I have to run "/usr/sbin/ethtool -K
eth0 tx off" after bring it up.

I this configuration, do you run a "normal" device (like eth0) in domU, or is it also a VLAN (eth0.302 in dom0, but also in domU)?


I believe that is  one  or other ...
If you setup  vlan per bridge in dom0  you just mount  eth0 in domU
else you setup just the default bridge  in dom0 and  VLANs in each domU

Look at  this blog, it's quite well explained ...
http://felipe-alfaro.org/blog/category/xen/

Yes, I've read it.


1. For me it works if:

- dom0 has one bridge, eth0 attached to it
- VLAN is made *only* in domUs


2. It doesn't work if:

- dom0 has multiple bridges, with different VLANs attached to it
- domU has a normal network setup (no VLANs configured)

In the case when it doesn't work, domU doesn't receive any packets - "tcpdump -i eth0" shows only packets that domU wants to send, but nothing else. Only domU attached to "default bridge" (xenbr0 + eth0) has network connectivity.



--
Tomasz Chmielewski
http://wpkg.org

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