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@lists.xensource.com
http://lists.xensource.com/xen-users
On 9/6/06, Axxxxx Mcxxxxxx wrote:> 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 >Hi, This article might help you. http://felipe-alfaro.org/blog/category/xen/ Regards. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users