Vlan tagging through a bridge to a VM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 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 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?

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux