CCNA · Lesson 5 of 13
Native VLAN: the One That Travels Untagged
On a trunk every VLAN carries a tag… except one. That one is the native VLAN.
In a nutshell
The native VLAN is the only one that crosses the trunk without a tag. It must be the same on both switches.
In this lesson
What is the native VLAN?
On an 802.1Q trunk, the native VLAN is the only VLAN whose frames travel untagged. By default it is VLAN 1.
It works in both directions:
- When sending: native VLAN frames leave the trunk untagged.
- When receiving: if an untagged frame arrives on the trunk, the switch places it in the native VLAN.
It exists for compatibility: if a device in the path does not understand tags (an old hub, for example), at least native VLAN traffic still works.
Change the native VLAN
SW1(config)# vlan 99
SW1(config-vlan)# name NATIVE
SW1(config)# interface g0/1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport trunk native vlan 99
Native VLAN mismatch
The native VLAN must be the same on both ends of the trunk. If it is 99 on SW1 and 1 on SW2, what SW1 sends untagged from VLAN 99, SW2 receives into VLAN 1. Result: connectivity problems and traffic ending up in the wrong VLAN. CDP detects it and shows:
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEthernet0/1 (99), with SW2 GigabitEthernet0/1 (1).
The trunk stays up; the error does not shut it down. That is why it sometimes goes unnoticed.
Native VLAN and security
An attacker can abuse the native VLAN with a double-tagging (VLAN hopping) attack: they send a frame with two tags; the first switch removes the outer one (the native VLAN tag) and the second switch reads the inner one and delivers it into another VLAN.
Best practice
Use a VLAN with no users as native (e.g. 99 or 999), never use VLAN 1 for users, and configure user ports as switchport mode access.
What you must remember
- The native VLAN travels untagged. By default it is VLAN 1.
- Untagged frames received on the trunk go into the native VLAN.
- It must match on both ends; otherwise CDP warns with NATIVE_VLAN_MISMATCH.
- For security, use a native VLAN with no users.
Check what you learned
4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.