Network security

Tagged vs Untagged VLAN: What the Difference Means

Tagged and untagged describe what a switch port does with the VLAN tag. One carries many networks, the other carries one — and mixing them up is the most common VLAN mistake.

Cysoro Security TeamPublished · 8 min read
NETWORK SECURITY Tagged vs Untagged VLAN One link, many networks — or one port, one network. SWITCH802.1Q tag: VLAN 10 · VLAN 20Q UNTAGGEDone VLAN · accessTAGGEDmany VLANs · trunk
Quick answer

A tagged VLAN port (trunk) carries traffic for multiple VLANs over one link, keeping the 4-byte IEEE 802.1Q tag on each frame so the receiving device knows which VLAN it belongs to. An untagged VLAN port (access) belongs to one VLAN and strips the tag before delivery. Use untagged ports for end devices such as PCs and printers, and tagged ports for links between switches, access points and routers.

Key takeaways

  • Tagged ports carry many VLANs and keep the 802.1Q tag; untagged ports carry one VLAN and strip it.
  • PVID assigns untagged frames to a VLAN on arrival; the native VLAN is the one VLAN sent untagged over a trunk.
  • VLANs alone do not block traffic between VLANs — you still need firewall rules or ACLs at the gateway.

Every VLAN guide eventually says the same two words: tagged and untagged. They sound like jargon, but they describe one simple thing — what a switch port does with the VLAN tag on a frame. Get it wrong and a device gets no address, or two networks that should be separate quietly merge.

What is a VLAN?

A VLAN (virtual local area network) is a logically separated network that runs on shared physical hardware. A switch groups ports into VLANs so traffic stays isolated even though it travels over the same wires, instead of needing a separate cable for every network.

Businesses use VLANs for segmentation: point-of-sale systems on one VLAN, guest Wi-Fi on another, VoIP phones on a third. A compromised guest device cannot reach payment systems, and voice traffic does not compete with browsing for bandwidth.

A VLAN separates broadcast domains, but it is not a firewall. Traffic between VLANs still passes through a router or gateway, so you need firewall rules or ACLs there to enforce the boundary. Our guide to how to secure your Wi-Fi shows the same segmentation idea applied to a home network.

What is VLAN tagging, and how does 802.1Q work?

VLAN tagging is how a switch keeps multiple VLANs separate while sharing one physical link, using the IEEE 802.1Q standard. Without tagging, one cable could carry only one VLAN, so every VLAN between two switches would need its own cable. TP-Link explains the 802.1Q tag and its 4,094 usable VLAN IDs in detail.

802.1Q inserts a 4-byte tag into the Ethernet frame, right after the source MAC address. Inside that tag, a 12-bit VLAN ID (VID) identifies which VLAN the frame belongs to, supporting 4,094 usable VLAN IDs, numbered 1 to 4,094. The tag also carries three priority bits for quality of service.

The first two bytes of the tag are the tag protocol ID, almost always 0x8100. A switch that sees 0x8100 where it expected a normal EtherType knows the frame is tagged and reads the VLAN ID from the next two bytes.

Untagged frame vs tagged 802.1Q frameUNTAGGEDDest MACSource MACEtherTypePayloadFCSTAGGEDDest MACSource MAC802.1Q tag (4 bytes)TypeDataFCSThe tag adds 4 bytes: TPID 0x8100, 3 priority bits, 1 drop-eligible bit, 12-bit VLAN ID.Usable VLAN IDs: 1 to 4,094. VLAN 0 and 4,095 are reserved.
How 802.1Q adds a 4-byte tag to an Ethernet frame. Illustration by Cysoro.

What is a tagged VLAN?

A tagged VLAN port, often called a trunk port, carries frames for multiple VLANs at once, and each frame keeps its VLAN tag so the receiving device knows where it belongs. One uplink cable can carry ten VLANs instead of ten separate cables running to the same switch.

Tagged ports typically show up in three places: switch-to-switch uplinks, switch-to-access-point links carrying multiple SSIDs, and switch-to-router or switch-to-gateway links serving several network segments at once. JumpCloud walks through the same tagged and untagged flows with step-by-step examples. On many switch platforms this same port type is labeled "trunk" rather than "tagged", so recognize both terms as the same configuration.

The device at the other end of a tagged link must understand 802.1Q. A managed switch, a VLAN-aware access point and a router all do. A plain PC usually does not, which is why end devices get untagged ports instead.

What is an untagged VLAN?

An untagged VLAN port, or access port, belongs to exactly one VLAN and delivers frames to the connected device without a VLAN tag. The switch strips the tag before the frame leaves the port, so the device on the other end never has to process VLAN tags at all.

Most end devices need untagged traffic because they cannot read VLAN tags. A PC or printer connected to an access port sees ordinary Ethernet frames and has no idea a VLAN even exists. That is what makes untagged ports the default choice for anything that plugs directly into the network.

Underneath, every managed switch lets you set, for each port and VLAN, one of three states: untagged member, tagged member, or not a member. An access port is an untagged member of exactly one VLAN, because an untagged frame leaving the port has no way to say which of several VLANs it belongs to.

Tagged vs untagged VLAN: the key differences

The difference comes down to how many networks a port carries, whether the tag stays or goes, what the port is usually called, and what connects to it.

CharacteristicUntagged (access)Tagged (trunk)
VLANs carriedOneMultiple
Tag behaviorTag removed before deliveryTag kept on the wire
Typical port nameAccess portTrunk port
Typical connected devicePC, printer, IP cameraSwitch, access point, router or gateway
PVID / native VLAN rolePVID sets the VLAN for all untagged framesNative VLAN is the one VLAN sent untagged
Device must understand 802.1QNoYes
Needs a managed switchYes, to assign the VLANYes

If the answer to "how many networks does this port need to carry?" is one, use an untagged access port. If it is more than one, use a tagged trunk port. That single question resolves most VLAN design decisions.

What are PVID and the native VLAN?

PVID, or port VLAN ID, is the VLAN assigned to incoming untagged frames on a port. On an access port, the PVID and the port's VLAN are the same thing: any untagged frame that arrives gets associated with that VLAN before the switch forwards it.

On a trunk port, the equivalent concept is the native VLAN: the one VLAN whose frames travel over that trunk without a tag. Every other VLAN on the trunk keeps its tag, but the native VLAN's traffic looks just like ordinary untagged traffic.

Keep the native VLAN separate from VLANs carrying user or business traffic. If an attacker can inject frames onto the native VLAN, a technique known as VLAN hopping lets that traffic cross into VLANs it should never reach. Many administrators dedicate an unused VLAN to native traffic instead of leaving the default VLAN 1 in place.

Do not leave VLAN 1 as the native VLANVLAN 1 is the default on almost every managed switch, and attackers know it. Move the native VLAN to an unused VLAN ID and prune VLAN 1 from trunks where it is not needed.

When should you use tagged vs untagged ports?

The decision follows a simple rule: connect an end device to a port, and it should be untagged; connect two pieces of network gear to each other, and it should be tagged. PCs, printers and IP cameras plug into untagged access ports, while uplinks between switches, access points and gateways use tagged trunk ports.

A single port can carry both at once. A port serving a PC plus a VoIP phone can carry one untagged VLAN for the PC and one tagged VLAN for the phone's voice traffic. An access point handling multiple SSIDs works the same way, with each SSID mapped to its own tagged VLAN over a single uplink cable.

In a small office, the switch-to-gateway uplink might be tagged to carry a staff VLAN and a guest VLAN, while every desk port stays untagged on the staff VLAN. Segmenting the network is one item on our small business cybersecurity checklist. In a restaurant, an access point uplink might carry tagged VLANs for point-of-sale traffic and guest Wi-Fi, while the point-of-sale terminal itself plugs into a separate untagged port.

A small office: untagged at the desk, tagged on the uplinksSwitch 1VLAN 10 staffVLAN 20 guestAccess pointStaff + Guest SSIDsRouter / gatewayFirewall rules hereTAGGEDTAGGEDPC — VLAN 10untagged access portPrinter — VLAN 10untagged access portGuest phone — VLAN 20via access point SSIDBlue = untagged access links. Amber = tagged trunk links carrying several VLANs.
Untagged ports serve end devices; tagged trunks connect network gear. Illustration by Cysoro.

What goes wrong when tagged and untagged are mixed up?

Most VLAN outages are configuration mistakes, not hardware failures. The symptoms look confusing — a device gets no address, or works on one switch but not another — while every link light stays green.

  • Tagged port, untagged device: if you tag a port but the device on the other end has no VLAN configured, it gets no address and cannot communicate.
  • Native VLAN mismatch: if the two ends of a trunk disagree on the native VLAN, untagged traffic lands in the wrong network and the two networks merge.
  • Allowed VLANs missing: a trunk that does not list a VLAN drops that VLAN's frames, so devices on it vanish from the rest of the network.
  • VLAN 1 left everywhere: the default VLAN on every port gives an attacker a known starting point for VLAN hopping.
  • No firewall rules between VLANs: segmentation that is never enforced at the gateway is decoration, not security.

When a VLAN stops working, check the port settings on both ends of the link first. The PVID, the native VLAN and the allowed VLAN list must match on both sides before anything else matters.

How do you configure tagged and untagged VLANs?

Configuring tagged and untagged VLANs requires a managed switch, since unmanaged switches cannot read or apply 802.1Q tags. The steps are the same on most vendors, even though the labels differ.

  1. Create the VLANs on the switch, with an ID and a name for each network (for example, 10 for staff, 20 for guests).
  2. Set desk ports to untagged on one VLAN, with the PVID set to that same VLAN, and exclude the rest.
  3. Set uplinks to tagged for every VLAN they must carry, and set the native VLAN to an unused ID.
  4. Match both ends of each trunk: the same native VLAN and the same allowed VLAN list on both sides.
  5. Add firewall rules at the gateway to decide which VLANs may talk to each other, and block the rest.
  6. Test from an end device on each VLAN: it should reach its own services and be blocked from the others.

Vendor terminology varies — some switches say "trunk" and "access", others say "tagged" and "untagged", and some use a per-port, per-VLAN membership grid. The underlying model is identical, so learn the model and the labels stop mattering.

The bottom line

Tagged means the VLAN tag stays on the frame so one link can carry many networks; untagged means the tag is stripped so one port serves one network to a device that knows nothing about VLANs. End devices get untagged access ports, network gear gets tagged trunks, and the PVID and native VLAN must agree on both ends of every link.

Remember that VLANs separate traffic, they do not police it — firewall rules at the gateway do that. Set those rules, move the native VLAN off VLAN 1, and test every VLAN from a real device. You can check the gateway and DNS setup behind your own network with our free DNS lookup tool.

Frequently asked questions

What is the difference between a tagged and untagged VLAN?

An untagged VLAN port belongs to one VLAN and removes the tag before delivery, so the device sees ordinary Ethernet frames. A tagged VLAN port carries several VLANs at once and keeps the 802.1Q tag on each frame so the device at the other end can tell them apart.

Is a tagged VLAN the same as a trunk port?

Yes, in most vendor terminology. A trunk port is a tagged port: it carries multiple VLANs and keeps the tag. An access port is an untagged port: it belongs to one VLAN and strips the tag.

Can a port be both tagged and untagged?

Yes. A port can carry one untagged VLAN, set by its PVID, plus one or more tagged VLANs at the same time. This is common for a PC plus a VoIP phone, or an access point carrying several SSIDs over one uplink.

What is PVID in a VLAN?

PVID stands for port VLAN ID. It is the VLAN assigned to incoming untagged frames on a port. On an access port the PVID is the port's VLAN; on a trunk the native VLAN plays the same role for untagged traffic.

What is the native VLAN?

The native VLAN is the one VLAN whose frames travel over a trunk without a tag. Every other VLAN on that trunk keeps its tag. Many administrators set the native VLAN to an unused VLAN instead of the default VLAN 1 to reduce VLAN hopping risk.

Do I need a managed switch for VLAN tagging?

Yes. VLAN tagging needs a switch that supports 802.1Q and lets you assign VLANs per port. Unmanaged switches treat all traffic the same and cannot read or apply tags.

Does a VLAN stop devices on different VLANs talking to each other?

No, not by itself. A VLAN separates broadcast domains, but traffic between VLANs still flows through a router or firewall. You need ACLs or firewall rules at the gateway to actually block it.

Sources

  1. TP-Link — Tagged vs. Untagged VLAN: What's the Difference?
  2. JumpCloud — Untagged vs Tagged VLANs
  3. Juniper Networks — Understanding Bridging and VLANs on EX Series Switches
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 TP-Link's and JumpCloud's tagged vs untagged VLAN guides and Juniper Networks' documentation of the IEEE 802.1Q frame format.

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