bridge vlan_filtering don't work with tap devices (qemu guests)

Alexandre DERUMIER
2013-12-23T16:13:28Z

Hello,

I'm trying to use vlan_filtering on bridge.

setup is : 2 qemu virtual machines (tap0 and tap1), plugged in a bridge br0.
virtual machines don't tag packets.

qemuvm1 eth0 --tap0----->br0<-------tap1---qemuvm2 eth0.

with vlan_filtering disable, both vms can ping together.

If I enabled filtering

#echo 1 > /sys/class/net/br0/bridge/vlan_filtering

Both vms cannot ping together anymore.

So, I have tried to put vlan on tap interfaces with

#bridge vlan add dev tap0 vid 10
#bridge vlan add dev tap1 vid 10
#bridge vlan show
port vlan ids
br0 None
tap0 10
tap1 10

But, it doesn't work.

tcpdump on bridge (tcpdump -i br0 -e -n) or in destination qemu (tcpdump -i eth0 -e -n) , don't see any packet

any idea ?

Regards,

Alexandre Derumier