Pcornel
Networking · Switching › 802.1Q Trunking

Native VLAN

Cheat sheet · https://pcornel.dk/topic.php?topic=592

Back to the Topic

Answer

The native VLAN is the VLAN whose frames cross an 802.1Q trunk untagged. Any untagged frame received on the trunk is placed in the native VLAN.

Remember

Set the same native VLAN on both ends (switchport trunk native vlan <id>). A mismatch silently merges two VLANs: untagged frames from VLAN 10 on one side arrive in VLAN 20 on the other. Use an unused VLAN as native, or tag it with vlan dot1q tag native, to avoid VLAN hopping.

First checks

  • show interfaces trunk — trunk ports, mode, encapsulation, native VLAN, allowed / active / forwarding VLANs.
  • show interfaces <if> switchport — administrative and operational mode, negotiation, native VLAN.
  • show dtp interface <if> — DTP state and negotiation.
  • show spanning-tree interface <if> — per-VLAN STP state on the trunk.
  • show cdp neighbors <if> detail — the neighbour's port, and native VLAN mismatch messages.

Commands

switchport trunk native vlan <id>
Set the native VLAN of a trunk; it must match on both ends.
show interfaces trunk
show interfaces switchport

Verify in this order

native VLAN set on end A → same native VLAN on end B → untagged frames land in the same VLAN on both sides → no CDP mismatch → no STP inconsistency

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

Native VLAN · operational reference

Native-VLAN stateMeaning
Matching both endsUntagged traffic classified consistently
MismatchUntagged traffic maps to different VLANs
Native tagging enabledNative frames may carry 802.1Q tag
Trunk upDoes not validate native consistency

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=592

Confirmation

Confirm action

Continue?