Access vs Trunk Ports, Tagged vs Untagged, and Native VLAN

 

Access vs Trunk Ports, Tagged vs Untagged, and Native VLAN

A plain-English explanation of how VLAN tagging actually works on a switch port, why different vendors use different words for the same thing, and the one mismatch that has caused more mystery outages than any other.

Quick Answer: An access port carries one VLAN and sends frames untagged; it connects end devices like PCs and printers. A trunk port carries multiple VLANs and sends frames tagged with an IEEE 802.1Q header so the far end knows which VLAN each frame belongs to; it connects switches, routers, and hypervisors. The native VLAN is the single VLAN on a trunk whose frames are sent without a tag. "Tagged" and "untagged" describe what happens to the frame on the wire; "access," "trunk," and "native" describe how the port is configured. Cisco says access/trunk/native; Aruba, HP, and many others say untagged/tagged per VLAN — but it is the same 802.1Q mechanism underneath.

Key Facts at a Glance

  • A VLAN tag is a 4-byte 802.1Q header inserted into the Ethernet frame; the 12-bit VLAN ID field allows 4,094 usable VLANs (1–4094).
  • End devices almost never understand tags, which is why access ports strip them.
  • A trunk can have exactly one native (untagged) VLAN; everything else on it is tagged.
  • Cisco's default native VLAN is VLAN 1; best practice is to change it to an unused VLAN.
  • A native VLAN mismatch between two trunk ends silently merges two broadcast domains and triggers CDP/LLDP warnings.
  • Aruba/HP "untagged" = Cisco "access" or "native"; Aruba/HP "tagged" = Cisco "allowed VLAN on a trunk."

Start With the Frame, Not the Port

Most explanations begin with port modes, and that's why people stay confused. Start with the Ethernet frame instead. A normal frame has no idea what VLAN it belongs to. When a switch needs to tell another switch "this frame is VLAN 20," it inserts a small 802.1Q tag between the source MAC address and the Ether Type. That's the whole trick. A tagged frame carries that header; an untagged frame doesn't.

Now the port modes make sense. They're just rules about when the switch adds a tag on the way out and how it interprets frames coming in.

Access Ports: One VLAN, No Tags

An access port belongs to a single VLAN. Frames arriving from the connected device are untagged, and the switch assigns them to the port's VLAN internally. Frames leaving toward the device have any tag removed. The laptop, printer, or camera never sees a VLAN header and doesn't need to. I think of an access port as a door with one room behind it.

The common exception is the voice VLAN: a phone with a PC behind it. Cisco handles this with a special case where the port is still "access" but carries a second, tagged voice VLAN. On Aruba you'd simply make the data VLAN untagged and the voice VLAN tagged on the same port — which hints at where this is going.

Trunk Ports: Many VLANs, Tags On

A trunk carries multiple VLANs over one physical link. Because the far end has to sort frames into the right VLAN, every frame gets an 802.1Q tag — with one exception we'll get to. Trunks live between switches, between a switch and a router doing inter-VLAN routing, and between a switch and a hypervisor or access point that hosts several VLANs itself. A trunk is a hallway with many doors.

Two details trip people up. First, a trunk only passes the VLANs it's allowed to carry; pruning the allowed list is both a security and a sanity measure. Second, both ends must agree on what's allowed, or traffic for a VLAN simply vanishes at one side with no error.

Native VLAN: The One Untagged Lane on the Trunk

Here's the exception. 802.1Q allows one VLAN on a trunk to travel untagged. That is the native VLAN. When an untagged frame arrives on a trunk port, the switch assumes it belongs to the native VLAN. When a frame from the native VLAN leaves, the switch doesn't tag it.

Why does this exist? Backward compatibility. Old devices and some management protocols that couldn't speak 802.1Q still needed to cross a trunk. Today it mostly exists to cause problems, which is why best practice is to set the native VLAN to an unused, dead-end VLAN on both ends — or to tag the native VLAN too, which most platforms support.

The classic outage: Switch A thinks the native VLAN is 1. Switch B thinks it's 99. Untagged frames leave A as VLAN 1 and arrive at B as VLAN 99. Two unrelated networks are now bridged, DHCP answers come from the wrong server, and nothing in the logs says "VLAN." CDP and LLDP will warn about a native VLAN mismatch — read those warnings.

Same Concept, Different Vocabulary

The biggest source of confusion isn't the technology; it's that vendors describe it from opposite directions. Cisco describes the port (access or trunk). Aruba, HP, Dell, and many others describe each VLAN's relationship to the port (tagged or untagged). Juniper does a bit of both.

What You WantCisco IOSAruba / HPJuniper Junos
One VLAN, untagged (PC port)switchport mode access; switchport access vlan 10vlan 10 untagged (port)interface-mode access; vlan members 10
Many VLANs, tagged (uplink)switchport mode trunk; switchport trunk allowed vlan 10,20vlan 10 tagged; vlan 20 taggedinterface-mode trunk; vlan members [10 20]
Untagged VLAN on a trunkswitchport trunk native vlan 99vlan 99 untagged (plus others tagged)native-vlan-id 99
Default untagged VLAN nameNative VLANPVID / untagged VLANNative VLAN

Once you see that an Aruba port with one untagged VLAN is a Cisco access port, and an Aruba port with one untagged plus several tagged VLANs is a Cisco trunk with a native VLAN, the vocabulary stops mattering. Some vendors call the mixed case a hybrid port or general port; same idea.

The Security Angle: VLAN Hopping

The native VLAN is also an attack surface. In a double-tagging attack, a host on the native VLAN sends a frame with two tags. The first switch strips the outer tag (because it matches the native VLAN) and forwards the frame across the trunk with the inner tag intact, landing it in a VLAN the attacker shouldn't reach. It's one-directional and situational, but the fix is cheap: never use VLAN 1 or any user VLAN as native, prune unused VLANs from trunks, and disable auto-negotiation of trunking (Cisco's DTP) on user-facing ports so a plugged-in laptop can't negotiate itself into a trunk.

A Five-Minute Troubleshooting Routine

  1. Confirm the port mode on both ends — one access and one trunk is a common accident.
  2. Compare allowed VLAN lists; a VLAN missing from either side is dropped silently.
  3. Check that native VLANs match, and look for CDP/LLDP mismatch messages.
  4. Verify the VLAN actually exists in the VLAN database on both switches.
  5. For servers and hypervisors, confirm whether the NIC expects tagged or untagged frames — a tagged frame to a NIC that isn't expecting one is just a dropped frame.

Frequently Asked Questions

What is the difference between tagged and untagged VLAN?

A tagged VLAN's frames carry an 802.1Q header identifying the VLAN; an untagged VLAN's frames carry no header. Access ports send untagged frames; trunks send tagged frames for every VLAN except the native VLAN.

Can a port be both access and trunk?

Not in Cisco terms, but a trunk with a native VLAN — or an Aruba port with one untagged and several tagged VLANs — behaves like both: untagged for one VLAN, tagged for the rest. Some vendors call this a hybrid port.

Should the native VLAN be VLAN 1?

No. VLAN 1 is the default everywhere and carries control traffic on many platforms. Use a dedicated unused VLAN as native, matching on both trunk ends, or tag the native VLAN if your platform allows it.

What is PVID?

Port VLAN ID — the VLAN a switch assigns to untagged frames arriving on a port. On an access port it is the access VLAN; on a trunk it is the native VLAN. The term is common on Aruba, HP, Dell, and Linux bridges.

Final Take

Five words, one mechanism. Tagged and untagged describe the frame; access, trunk, and native describe the port's rules for handling it. Hold onto that and every vendor's CLI becomes a translation exercise rather than a new subject. And when something "just doesn't pass traffic" between two switches, check the native VLAN first — it's been the answer more times than I'd like to admit.

Disclaimer: Command syntax is simplified for illustration and varies by platform and software version. Always check current vendor documentation before applying changes to production switches.