[Bridge] Vlan tagging through a bridge to a VM

José A. Lausuch Sales jlausuch at gmail.com
Tue Feb 17 10:41:21 UTC 2015


I want to create a guest VM with a single bridge (br0) and I want it to
talk untagged traffic and tagged traffic using vlans 11 and 22.

>From the Host where I create the VM, I use the following commands to create
the bridge.
ip link add name eth1.11 link eth1 type vlan id 11
ip link set eth1.11 up
ip link add name eth1.22 link eth1 type vlan id 22
ip link set eth1.22 up

brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth1.11
brctl addif br0 eth1.22

ip addr add broadcast dev br0
ip addr add broadcast dev br0 label br0:11
ip addr add broadcast dev br0 label br0:22


So far, everything ok. I can ping the IPs in vlans 11 and 22 from that
bridge (e.g. ping -I br0 and also untagged network (e.g. ping
-I br0

Now when I use that br0 to create a VM, it can ping the untagged network
but not the tagged ones (creating also vlan interfaces in the VM).

What am I missing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bridge/attachments/20150217/c6c1c343/attachment-0003.html>

More information about the Bridge mailing list