Switching (VLAN/STP)
switchport trunk native vlan <id>
Native VLAN — frames in it cross the trunk untagged. Must match on both sides.
Works on: SwitchMode: iface
Watch out
Native VLAN mismatch generates a STP warning and lets traffic leak between VLANs.
Run this command live
Don't just read it — type switchport trunk native vlan <id> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.
Frequently asked
What does the "switchport trunk native vlan <id>" command do?
Native VLAN — frames in it cross the trunk untagged. Must match on both sides.
What's the common gotcha with "switchport trunk native vlan <id>"?
Native VLAN mismatch generates a STP warning and lets traffic leak between VLANs.