This answer says "[a] trunk has optionally one untagged VLAN and many tagged VLANS."
I always thought specifying switchport mode trunk
would drop untagged frames at that port, but that answer seems to indicate that otherwise.
How do you drop (or ignore or filter) all untagged traffic that arrives on an 802.1q VLAN trunk port?
I thought that perhaps omitting switchport trunk native vlan <n>
would do that, but then I thought it might default to vlan 1
which would also be undesirable. What is the best practice here?
switchport trunk allowed vlan
command.