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

[Xen-users] VLANs and bridging

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] VLANs and bridging
From: "Andrew McConnell" <armcconnell@xxxxxxxxx>
Date: Wed, 6 Sep 2006 12:11:05 -0400
Delivery-date: Wed, 06 Sep 2006 09:11:58 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Y6GFTIUq0FGJlHgTPIwG8Cc9QuJ3TvQzgbSI21H3wzfEhd3oSIpIgI2Hx5X8baB4QtmiNERHB/qytsGfomlWQ6DK8iNN4gii2zgBmsL1LAkJy1CGhcALulaFLjpgsw4d/nazvH37k9q6EUAeJIKd/dGosP8iT1z2o1+0+eaHoK0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

I'm having some trouble getting VLAN bridging to work on my Xen
installation.  Here's what I've done:

On Dom0, I set up a new bridge and add eth1 to it.  I suppose I'll
eventually use /etc/xen/scripts/network-bridge to do this for me, but
I see no reason why this shouldn't work.

dom0# brctl addbr vlans
dom0# brctl stp vlans off
dom0# brctl setfd vlans 0
dom0# brctl addif vlans eth1
dom0# brctl show
bridge name     bridge id               STP enabled     interfaces
vlans           8000.00a0d1e10f67       no              eth1
xenbr0          8000.feffffffffff       no              peth0
                                                       vif0.0

eth1 is connected to a switch running 802.1q.  I know my VLANs work
normally in Dom0 based on the following output where I configure a new
VLAN on eth1, add an IP and ping something on the VLAN.

dom0# ifconfig eth1.48
eth1.48: error fetching interface information: Device not found
dom0# vconfig add eth1 48
Added VLAN with VID == 48 to IF -:eth1:-
dom0# ifconfig eth1.48 up 198.18.0.53/24
dom0# ping 198.18.0.2
PING 198.18.0.2 (198.18.0.2) 56(84) bytes of data.
64 bytes from 198.18.0.2: icmp_seq=0 ttl=255 time=10.3 ms

--- 198.18.0.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 10.332/10.332/10.332/0.000 ms, pipe 2


Now I want to have a similar config on my DomU's, so I start one up
with the following vif configuration:

vif = [ 'bridge=vlans' ]

After it boots, I insert the 8021q module and create a VLAN interface.

domU# insmod 8021q.ko
8021q: no version for "struct_module" found: kernel tainted.
domU# vconfig add eth0 48
Added VLAN with VID == 48 to IF -:eth0:-
domU# ifconfig eth0.48 up 198.18.0.53/24
domU# ping 198.18.0.2
PING 198.18.0.2 (198.18.0.2) 56(84) bytes of data.

--- 198.18.0.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

As you can see, it didn't work.  Back on Dom0, I see the vif for my
DomU has been added to my bridge as I would expect.  What am I
missing?  Why aren't tagged frames from my DomU being bridged to eth1
on Dom0?

dom0# brctl show
bridge name     bridge id               STP enabled     interfaces
vlans           8000.00a0d1e10f67       no              eth1
                                                       vif7.0
xenbr0          8000.feffffffffff       no              peth0
                                                       vif0.0


Help appreciated.

-Andrew

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] VLANs and bridging, Andrew McConnell <=