José A. Lausuch Sales
2015-Feb-17 10:41 UTC
[Bridge] Vlan tagging through a bridge to a VM
Hi, 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 createthe 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 192.168.0.100/24 broadcast 192.168.0.255 dev br0 ip addr add 192.168.11.100/24 broadcast 192.168.0.255 dev br0 label br0:11 ip addr add 192.168.22.100/24 broadcast 192.168.0.255 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 192.168.11.3) and also untagged network (e.g. ping -I br0 192.168.0.5). 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>