Network security

What Is a Native VLAN Used For? Untagged Traffic Explained

The native VLAN is the one VLAN whose frames cross a trunk untagged. Here is what it is for, why the default is dangerous, and the safe setup.

Cysoro Security TeamPublished · 7 min read
VLAN 10 — taggedFrames carry a VLAN ID VLAN 20 — taggedFrames carry a VLAN ID Native VLAN — untaggedNo tag. The exception. NETWORK SECURITY NativeVLAN The untagged lane on a trunk.
Quick answer

A native VLAN is used to carry untagged traffic on an 802.1Q trunk link between switches, or between a switch and a router. When a trunk receives a frame with no VLAN tag, it assigns that frame to the native VLAN, so legacy devices that do not understand tagging can still communicate. By default it is VLAN 1, but best practice is to change it to a dedicated, unused VLAN.

Key takeaways

  • The native VLAN is the one VLAN whose frames cross an 802.1Q trunk untagged.
  • It exists for backward compatibility with legacy devices that cannot read VLAN tags.
  • Leaving it on VLAN 1 enables VLAN hopping, so use a dedicated unused VLAN and match both ends.

A trunk link carries traffic for many VLANs over one cable, with each frame tagged so the switch at the other end knows where it belongs. The native VLAN is the deliberate exception: its frames cross the trunk with no tag at all.

What is a native VLAN?

A native VLAN is the default VLAN for a trunk port that does not tag any traffic. When a switch sends a frame in the native VLAN across a trunk, it omits the tag entirely, and when it receives an untagged frame on a trunk, it assumes that frame belongs to the native VLAN.

Trunk links are connections between switches, or between a switch and a router, that let multiple VLANs share a single network connection by tagging Ethernet frames using the IEEE 802.1Q standard. The native VLAN acts as a home for untagged frames, so they are processed instead of being discarded.

By default, the native VLAN on a Cisco trunk is VLAN 1. VLAN 1 is also the default access VLAN for every port and the VLAN that protocols such as CDP, VTP, DTP and PAgP use, which is why leaving everything on VLAN 1 is a poor security posture.

What is a native VLAN used for?

A native VLAN is used to carry untagged traffic on a trunk, so devices that do not support VLAN tagging can still communicate across a modern switched network.

The main uses are:

  • Legacy device communication: older devices that do not understand 802.1Q can send and receive traffic through the trunk.
  • IP phones and simple devices: some phones and devices send untagged traffic by default, and the native VLAN gives that traffic a home while tagged data traffic stays separate.
  • Control-plane traffic: protocols such as CDP and DTP historically send untagged messages between devices.
  • Router-on-a-stick: a router subinterface configured with the native option receives untagged native VLAN traffic from the switch.
  • Preventing packet loss: untagged frames arriving on a trunk are assigned somewhere, instead of being dropped.

In a pure modern switch-to-switch trunk, almost nothing actually needs the native VLAN. That is exactly why it becomes a security liability if you ignore it, as the PingLabz native VLAN guide notes.

Tagged vs untagged on a trunkSwitch AVLAN 10 — taggedVLAN 20 — taggedNative VLAN — untaggedSwitch Breads the tag,or assigns untaggedframes to native VLANTrunk linkTagged frames keep their VLAN ID. Untagged frames belong to the native VLAN.
How a trunk separates tagged VLAN traffic from untagged native VLAN traffic. Illustration by Cysoro.

How does a native VLAN work?

When a data frame arrives at a trunk port, the switch checks for a tag. If it is tagged, the switch directs it to the correct VLAN. If it is untagged, the switch assigns it to the native VLAN.

On the sending side, the same rule applies in reverse. Frames from tagged VLANs leave the trunk with their 802.1Q tag attached. Frames from the native VLAN leave without a tag, so the device at the other end must know that untagged traffic means the native VLAN.

This is why both ends of a trunk must agree on the native VLAN number. Cisco's documentation notes that the native VLAN must be configured with the same value at both ends of the link, or traffic can be lost or sent to the wrong VLAN.

Why is VLAN 1 a problem as the native VLAN?

VLAN 1 is the default native VLAN, the default access VLAN and the home of control protocols, so leaving it as the native VLAN mixes user traffic, management traffic and control traffic in one untagged VLAN.

That matters for two reasons. First, untagged frames lose their identity enforcement and their class-of-service bits when they cross a trunk, because the tag that carried that information is gone. Second, an attacker who can reach the native VLAN can exploit it to jump between VLANs, as explained below.

Cisco community guidance recommends that the native VLAN should never be used as a user VLAN or the management VLAN. Instead, use a different, unused VLAN as the native VLAN, which keeps untagged traffic separate from important network management tasks.

What happens if the native VLANs do not match?

If the two ends of a trunk disagree on the native VLAN, untagged frames are dropped into the wrong VLAN, bridging two VLANs together and leaking traffic between them.

For example, if one switch has native VLAN 1 and the other has native VLAN 99, an untagged frame sent in VLAN 1 arrives at the other switch, which sees no tag and drops it into VLAN 99. The two VLANs are now bridged, and devices in one can reach devices in the other.

Switches usually raise alarms for this: CDP and STP both flag a native VLAN mismatch. But the alarm only helps if someone is watching the logs. The fix is simple: configure the same native VLAN on both ends, and document it in your network inventory. For more on keeping unknown devices off your network, see our guide to securing your Wi-Fi.

How does the native VLAN enable VLAN hopping?

The native VLAN enables the double-tagging VLAN hopping attack, in which an attacker on the native VLAN crafts a frame with two 802.1Q tags to reach a VLAN they should not access.

The attack works like this: the attacker sends a frame with an outer tag for the native VLAN and an inner tag for the target VLAN. The first switch strips the outer tag because the frame is in its native VLAN, then forwards the frame, still carrying the inner tag, to the second switch. The second switch reads the inner tag and delivers the frame to the target VLAN.

The attack only works when the attacker's access VLAN equals the trunk's native VLAN. That is why the single most effective defense is to set the native VLAN to a dedicated, unused VLAN with no access ports and no hosts, so no attacker can sit on it in the first place.

SettingDefault (risky)Secure setup
Native VLANVLAN 1Dedicated unused VLAN, for example 999
User trafficOn VLAN 1On tagged user VLANs only
Management trafficOn VLAN 1On a separate management VLAN
Both ends of trunkOften mismatchedSame native VLAN, documented
Unused portsLeft in VLAN 1Disabled or in an unused VLAN
Double taggingPossible if attacker is on native VLANBlocked by an unused native VLAN

How do you configure a native VLAN safely?

Configure the same dedicated, unused native VLAN on every trunk, and never assign user or management traffic to it. On a Cisco switch, the commands are straightforward.

  1. Pick an unused VLAN, for example 999, with no access ports and no hosts.
  2. Set the trunk mode on the interface, then set the native VLAN to that number.
  3. Repeat on the other end of the trunk, with the same VLAN number.
  4. Verify the setting and check for mismatch warnings in the switch logs.
  5. Move management traffic to its own VLAN, away from the native VLAN.

Example Cisco IOS commands, from Cisco Learning Network guidance:

  • Switch(config)# interface gigabitethernet 0/1
  • Switch(config-if)# switchport mode trunk
  • Switch(config-if)# switchport trunk native vlan 999

On a router subinterface that receives native VLAN traffic, use the native option so it expects those frames untagged, for example encapsulation dot1q 1 native in older syntax, with the VLAN number you chose. Our small business cybersecurity checklist covers network segmentation alongside these switch settings.

Secure native VLAN checklistUse a dedicated, unused VLANMatch the VLAN on both endsNo users or hosts on itSeparate management VLANDisable unused portsWatch for mismatch alarms
Six checks for a safe native VLAN setup. Illustration by Cysoro.

Native VLAN vs default VLAN vs management VLAN: what is the difference?

These three terms are often confused, but they describe different jobs. The native VLAN handles untagged traffic on a trunk. The default VLAN is the VLAN a port belongs to out of the box, which is VLAN 1 on Cisco switches. The management VLAN is the VLAN used to manage switches, for example via SSH or SNMP.

By default, all three are VLAN 1, which is the problem. Best practice separates them: a dedicated unused VLAN for the native VLAN, tagged user VLANs for users, and a separate management VLAN for switch administration, with access restricted to administrators.

Keeping them separate means a user who plugs into a wall port cannot reach the management plane, and untagged traffic cannot be used to hop into a user VLAN.

The bottom line

A native VLAN exists so untagged traffic has a home on a trunk. It is a backward-compatibility feature, not a place to put users or management traffic, and the default of VLAN 1 is the least secure choice.

Move it to a dedicated, unused VLAN, match it on both ends of every trunk, and keep management traffic separate. That one change closes the double-tagging hole and stops a simple mismatch from bridging two VLANs together.

For the underlying guidance, see the Cisco Learning Network native VLAN guide and the JumpCloud native VLAN explainer. For a wider starting point, our small business cybersecurity checklist covers network segmentation alongside switch settings.

Frequently asked questions

What is a native VLAN used for?

A native VLAN carries untagged traffic on an 802.1Q trunk, so devices that do not support VLAN tagging, such as legacy equipment and some IP phones, can still communicate across the network.

What is the default native VLAN?

On Cisco switches the default native VLAN is VLAN 1. Best practice is to change it to a dedicated, unused VLAN, because VLAN 1 also carries user and control traffic by default.

Is the native VLAN tagged or untagged?

Untagged. Frames in the native VLAN cross a trunk without an 802.1Q tag, and untagged frames arriving on a trunk are assigned to the native VLAN.

What happens if native VLANs do not match?

Untagged frames are dropped into the wrong VLAN, bridging two VLANs together and leaking traffic between them. Switches usually raise CDP and STP mismatch alarms.

Can the native VLAN be hacked?

Yes, through double-tagging VLAN hopping, which works when the attacker's access VLAN is the trunk's native VLAN. Using a dedicated unused native VLAN blocks that attack.

Should the native VLAN be VLAN 1?

No. Use a dedicated, unused VLAN with no access ports and no hosts, keep user and management traffic on separate tagged VLANs, and match the native VLAN on both ends of every trunk.

Sources

  1. Cisco Community — Native VLAN
  2. Cisco Learning Network — The Unsung Hero of Networking: Unveiling the Native VLAN
  3. JumpCloud — What Is Native VLAN?
  4. PingLabz — Native VLAN: Untagged Trunk Traffic Explained
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Cisco documentation and community guidance on 802.1Q native VLANs and trunk configuration.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free