I have a bond binding two nics connected to two switch ports each with an untagged and multiple tagged vlans (802.1q). On top of the bond is a bridge (linux ifupdown2 not ovs). Now I add some VMs. VMs which receive a vlan tag see only the vlan tagged traffic, all good. VMs without a vlan tag see the trunk traffic and not only the untagged traffic (e.g. broadcast traffic from tagged networks). Makes sense in a way, but is there an option to pass only the untagged traffic to the vm?
Code:
auto bond0
iface bond0 inet manual
bond-slaves enp161s0f0np0 eno34np1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2
bond-min-links 1
auto vmbr0
iface vmbr0 inet static
address 10.10.10.5/24
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094