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] xen vlans in domU

To: "Alexander Kriventsov" <avk@xxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] xen vlans in domU
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 3 Aug 2010 19:49:03 +1000
Cc:
Delivery-date: Tue, 03 Aug 2010 02:50:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C57E3B9.2070807@xxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4C57E3B9.2070807@xxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acsy8DbxP2H+PqP5RLGt+Svt9I409gAAFLwA
Thread-topic: [Xen-users] xen vlans in domU
> 
> Hello.
> I'm trying to use vlan in domU, but have something strange:
> I created bridge on eth0. This interface was configured as trunk with
> vlan 300, 301. I use this bridge in my domU, and I can see tagged
> packets when run tcpdump in domU. Also I created interface on domU to
> work with vlan 300. On this interface I see untagged packets in vlan300.
> And everything looks fine.
> But when I'm trying to send out packets through interface with vlan300
> something happen. On domU in eth0 interface i see that packet was tagged
> as vlan 300, but on dom0 I see that package doesn't have tag and sending
> to switch as untagged which is incorrect.
> 
> Why does kernel remove tag from outgoing packets?
> Is anyone using trunk inside of domU?
> 
> I'm using xen 3.4.3 on Centos 5.5 with kernel 2.6.18.
> 

I'm not sure I quite understand what you want to do, but I think you need to 
use ebtables, in particular the 'broute' table, to tell Linux how you want 
tagged packets to behave. One thing I was never able to do was to tell Linux to 
place a copy of the tagged packet on one bridge so that I could have a trunk to 
a DomU whilst simultaneously l2 routing packets to their correct interfaces.

James
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>