I'm trying to configure linux interface into trunk-only mode, that means 'accept only vlan-tagged traffic', and most importantly, ignore all untagged traffic.
I'm pretty successful at having tagged traffic to work (ip link add type vlan
works nincely), but I'm having trouble to ignore all untagged traffic.
I've tried to create vlan interface with loose_binding on
mode and to set main interface DOWN. It allowed me to set vlan interfaces UP, but it still show them with M-DOWN
state, and none of the traffic is leaving interface (with tag or without). Basically, if I shutdown linked (main) interface, all vlans stops to work.
How to forbid linux to see traffic on 'main' (untagged, native) interface? I want to disable everything: reacting on suspicious mac addresses, ipv6, ipv4, arp, etc. I just want linux to ignore untagged traffic completely and never try to send anything untagged.
Is this possible without involving bridges and/or OVS?