A native VLAN is the VLAN assigned to untagged frames on an IEEE 802.1Q trunk port: frames belonging to it leave the trunk without a VLAN tag, and any untagged frame that arrives on the trunk is placed into it. In Ethernet & switching, the native VLAN exists so that a trunk can still carry traffic from devices or protocols that do not understand 802.1Q tags.
On most enterprise switches, the native VLAN is VLAN 1 by default. The setting is local to each trunk port, so both ends of a link must agree on it; a mismatch silently merges two VLANs and is one of the classic configuration faults in switched networks.
How the native VLAN works on an 802.1Q trunk
The native VLAN works by exempting one VLAN from tagging on a trunk. A trunk port normally inserts a 4-byte 802.1Q tag into each Ethernet frame, carrying a 12-bit VLAN ID that tells the receiving switch which broadcast domain the frame belongs to. Frames of the native VLAN skip this step and are sent as ordinary untagged frames.
On the receiving side, the switch applies a simple rule: a tagged frame goes to the VLAN in its tag, and an untagged frame goes to the native VLAN configured on that port. This rule is what makes the native VLAN useful and also what makes it risky, because the switch has no way to verify where an untagged frame really came from.
The following table shows how a trunk port treats frames in each direction.
| Frame situation | Egress behavior | Ingress behavior |
|---|---|---|
| Frame in native VLAN | Sent without a tag | Accepted untagged into native VLAN |
| Frame in another allowed VLAN | Sent with 802.1Q tag | Accepted into VLAN in tag |
| Frame in a VLAN not allowed on trunk | Not forwarded | Dropped |
| Tagged frame carrying native VLAN ID | Not sent by default | Usually accepted into native VLAN |
The native VLAN concept applies only to trunk ports. An access port belongs to a single VLAN and always sends untagged frames, so it has an access VLAN rather than a native VLAN, although some vendors use similar terms for both.
Why the native VLAN exists
The native VLAN exists mainly for backward compatibility and control traffic. When 802.1Q was introduced, many devices could not process tagged frames, and a shared segment might contain both VLAN-aware switches and older hubs or hosts. Untagged traffic needed a defined home, and the native VLAN provided it.
Today the native VLAN still matters in several situations. Some control protocols such as CDP, VTP, PAgP and DTP on Cisco switches are sent untagged, and IEEE Spanning Tree BPDUs travel untagged as well. IP phones with a built-in switch, wireless access points and hypervisor uplinks often need a trunk that carries one untagged management or data VLAN plus several tagged ones.
The table below lists typical uses together with the usual configuration choice.
| Use case | Why untagged traffic appears | Common approach |
|---|---|---|
| Wireless access point uplink | Management traffic before configuration | Native VLAN as management VLAN |
| Hypervisor host uplink | Host management without tagging | Native VLAN for host management |
| Legacy device on trunk | Device cannot read tags | Native VLAN carries its traffic |
| Switch-to-switch trunk | Control protocols sent untagged | Unused native VLAN, all data tagged |
Native VLAN mismatch and its effects
A native VLAN mismatch occurs when the two ends of a trunk use different native VLAN IDs. Because native frames carry no tag, a frame sent untagged from VLAN 10 on one switch is accepted into VLAN 20 on the other, which merges two broadcast domains without any visible error on the link.
The consequences range from unexpected address assignments via DHCP to traffic leaking between segments that were supposed to be isolated. Spanning Tree can also react: on Cisco switches running PVST+, a mismatch typically puts the affected ports into a blocking inconsistent state, and CDP reports a warning message about the mismatch in the switch log.
The following table links common symptoms with their likely cause and fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| Hosts receive addresses from wrong subnet | Native VLAN differs on trunk ends | Align native VLAN on both ports |
| Port blocked as inconsistent | Spanning Tree detects VLAN mismatch | Correct native VLAN, then verify STP |
| Access point unreachable after change | Management VLAN no longer native | Restore native VLAN or tag management |
| CDP mismatch messages in log | Configuration drift between switches | Standardize trunk templates |
Security risks and VLAN hopping
The native VLAN is the basis of the double-tagging VLAN hopping attack. An attacker connected to an access port in the native VLAN of a trunk sends a frame with two 802.1Q tags: an outer tag matching the native VLAN and an inner tag naming the target VLAN.
The first switch removes the outer tag and, because the frame belongs to the native VLAN, forwards it untagged across the trunk. The next switch then reads the remaining inner tag and delivers the frame into the target VLAN. The attack is one-way only, since replies do not return the same path, but it can still deliver malicious traffic into a protected segment.
Recommended hardening practices close this path and reduce the effect of mistakes.
- Change the native VLAN from VLAN 1 to a dedicated, unused VLAN ID on all trunks.
- Never assign user access ports to the VLAN used as native on trunks.
- Enable native VLAN tagging where supported, so that even native frames carry a tag.
- Disable automatic trunk negotiation on user-facing ports to prevent unintended trunks.
- Restrict allowed VLANs on each trunk to those actually needed.
Configuring a native VLAN correctly
Correct configuration means choosing one consistent native VLAN per trunk, documenting it and verifying both ends. On Cisco IOS, the command switchport trunk native vlan 999 sets the native VLAN on a trunk interface, and show interfaces trunk displays the value in use. Other vendors use terms such as untagged VLAN or PVID, port VLAN ID, for the same concept.
A dedicated black-hole VLAN with no hosts and no routed interface is a widely used design for switch-to-switch trunks. Where a downstream device genuinely requires untagged management traffic, the native VLAN should be that management VLAN and access to it should be tightly limited. Global commands that force tagging of the native VLAN offer the strongest protection, but every device on the link must then accept tagged frames.
The idea in brief
Picture a shared delivery truck carrying parcels for several departments. Each parcel normally gets a colored label that shows its department. The native VLAN is the one department whose parcels travel without a label.
When an unlabeled parcel arrives, the receiving warehouse assumes it belongs to that department. This works if both warehouses agree on which department it is. If they disagree, parcels end up in the wrong place, which is exactly what happens on a network when the native VLAN settings do not match.
A practical scenario
A school replaces its core switch and connects twelve access switches with 802.1Q trunks. The new core uses VLAN 1 as the native VLAN, while the existing access switches were configured years earlier with native VLAN 99. Shortly after the change, classroom laptops begin receiving addresses from the staff subnet, and the switch logs report native VLAN mismatch messages.
The network administrator sets VLAN 999, an empty VLAN with no hosts, as the native VLAN on both ends of every trunk and limits each trunk to the six VLANs the school uses. After the change, address assignment returns to normal, the mismatch messages stop, and the double-tagging attack path is closed because no access port belongs to VLAN 999.