Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

802.1Q Tag Field Reference

Direct answer

The 802.1Q tag is four bytes added to a frame on a trunk: a marker (0x8100), three priority bits, a drop-eligible bit, and the 12-bit VLAN number.

When to use this

Use it to see in a capture which VLAN a frame is in and whether it is tagged at all — the question behind every native VLAN problem — and to follow Layer 2 priority markings.

First 30 seconds

1. show interfaces trunk on both ends — same native VLAN?

2. In a capture on the trunk: is the frame tagged, and with which ID?

3. Untagged where a tag was expected → native VLAN, or the sender is an access port.

4. No tags in the capture at all → the capturing card or the SPAN session removed them.

Operational verification

frame enters on an access port → VLAN assigned → tagged with that ID on the trunk (untagged only in the native VLAN) → far end reads the tag → delivered in the same VLAN

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandshow interfaces trunk
Scope / prerequisiteUse it to see in a capture which VLAN a frame is in and whether it is tagged at all — the question behind every native …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification Verify boundary
show interfaces trunk
show interfaces GigabitEthernet1/0/1 switchport
show vlan id 20

show interfaces trunk lists the trunk ports with their native VLAN and the VLANs allowed and active on each. The switchport view shows a single port's mode, access VLAN and native VLAN. show vlan id confirms that the VLAN exists and which access ports are in it.

In a capture, look for "802.1Q Virtual LAN" between the Ethernet header and the IP header, with its priority and ID. To see tags on a mirrored port, the SPAN destination must be configured to keep them (encapsulation replicate), and the capturing network card must not strip them.

Known-good: frames for the VLAN are tagged with the expected ID on the trunk, and the native VLAN is the same on both ends.

Step 2 Failure isolation workflow Narrow the fault
  • Frames arrive untagged where a tag was expected. They are in the sender's native VLAN, or the sending port is an access port.
  • Traffic leaks between two VLANs. Native VLAN mismatch on a trunk.
  • No tags in a capture taken on a trunk. The network card or the SPAN session removed them.
  • Priority markings disappear. The frame passed an access port, or the switch does not trust the marking on the incoming port.
  • Tagged frames are dropped by a device. It does not accept frames of 1522 bytes, or the port expects untagged frames.
  • Frames tagged with VLAN 0. Priority-tagged frames from a phone or server; the switch places them in the port's own VLAN.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Frames in the native VLAN are sent untagged; if the two ends disagree, traffic crosses between VLANs. Usable VLAN numbers are 1–4094. The priority bits exist only in the tag and are lost on access ports. Captures often show no tag because the network card strips it.

Key checks
  • show interfaces trunk — native VLAN and allowed VLANs per trunk.
  • show interfaces <interface> switchport — mode, access VLAN, native VLAN.
  • show vlan id <id> — the VLAN exists; its access ports.
  • In a capture: the "802.1Q Virtual LAN" header with priority and ID.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

The 802.1Q tag is four bytes added to an Ethernet frame to say which VLAN it belongs to. It is inserted between the source MAC address and the EtherType when a frame is sent on a trunk, and removed again before the frame is delivered to an end device.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

The tag is the only thing that keeps VLANs apart on a shared link. Reading it in a capture shows directly which VLAN a frame is in — and whether it is tagged at all, which is the question behind every native VLAN problem. The tag also carries the Layer 2 priority used for QoS.

ReferenceHow it works1 section · depth on demand

How it works

FieldSizeMeaning
TPID16 bits0x8100 — marks the frame as tagged
PCP3 bitsPriority, 0–7; also called class of service (CoS)
DEI1 bitDrop eligible: the frame may be dropped first under congestion
VID12 bitsThe VLAN number

The TPID sits where the EtherType normally is; the original EtherType follows after the tag. Because the frame changes, the switch recalculates the checksum, and the maximum frame size grows from 1518 to 1522 bytes.

VLAN numbers. Twelve bits give 0–4095. Of these, 1–4094 are usable. VID 0 means "no VLAN, priority only" — a frame tagged just to carry a priority value — and 4095 is reserved. On Cisco switches 1002–1005 are reserved for legacy uses, and 1006–4094 are the extended range.

Native VLAN. Frames in the trunk's native VLAN are sent without a tag. A frame arriving untagged on a trunk is placed in the native VLAN of the receiving port. If the two ends disagree, traffic silently crosses from one VLAN to another.

Priority. The PCP bits exist only in the tag. A frame leaving through an access port loses the tag and with it the priority; the IP header's DSCP field is what survives end to end.

Double tagging. Service providers add a second, outer tag to carry customers' VLANs across their network (QinQ). The outer tag commonly uses TPID 0x88A8, and each tag adds four bytes to the frame.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

The 802.1Q tag field by field

The 802.1Q tag is 4 bytes inserted after the source MAC address. The Wireshark VLAN wiki describes the layout:

  • TPID: the EtherType 0x8100.
  • Priority: 3 bits.
  • CFI (now DEI): 1 bit.
  • VLAN ID: 12 bits.
  • Inner EtherType: the original EtherType or length follows.

The tag adds 4 bytes, so a maximum-size frame grows from 1514 to 1518 bytes without FCS, while the payload limit stays 1500 bytes.

Tag fields

FieldBitsValues and use
TPID160x8100 (802.1Q); 0x88A8 for 802.1ad outer tags (QinQ)
PCP (priority)30–7 = CoS; 5 is common for voice, 6 for network control
DEI (formerly CFI)1Drop eligible indicator (marks traffic that can be dropped first)
VID121–4094 usable; 0 = priority tag only, 4095 reserved

CoS and DSCP

CoS (PCP)Typical trafficTypical DSCP mapping
0Best effort0
1Scavenger / backgroundCS1 (8)
3SignallingCS3 (24)
4VideoAF41 (34)
5VoiceEF (46)
6Network controlCS6 (48)

CoS exists only in tagged frames. It disappears at the first routed hop or untagged link, which is why enterprises mark DSCP and treat CoS as a Layer 2 hint.

QinQ

Providers can add an outer tag (TPID 0x88A8, or 0x8100 on some platforms) in front of the customer's tag. That carries many customer VLANs inside one provider VLAN. Each tag adds 4 bytes to the frame.

host$ sudo tcpdump -eni eth1 -c 2 vlan
ethertype 802.1Q (0x8100), length 102: vlan 120, p 5, ethertype IPv4, 10.120.0.33.16384 > 10.30.0.40.20480: UDP, length 172
host$ tshark -r tagged.pcap -T fields -e vlan.id -e vlan.priority -e vlan.dei -e vlan.etype | sort | uniq -c
    410 120  5  0  0x0800
     88 110  0  0  0x0800
SW1# show mls qos interface GigabitEthernet1/0/7 | include trust|cos
SW1# show interfaces GigabitEthernet1/0/7 switchport | include Voice

The capture shows voice in VLAN 120 with priority 5, matching the phone's LLDP-MED or CDP voice VLAN settings. Data in VLAN 110 is priority 0.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works

An 802.1Q tag inserts 4 bytes after the source MAC: TPID 0x8100, then 3 bits PCP (CoS), 1 bit DEI, and a 12-bit VLAN ID (1–4094 usable). The tag raises the maximum frame size from 1518 to 1522 bytes. Frames in the native VLAN cross a trunk untagged.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → 802.1Q Tag Field Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
vlan tag fieldspcp dei vid
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

802.1Q Fields

TPID/PCP/DEI/VID.

30-second lookup

  • Open Packet Field Explorer for field-level metadata.
  • Use Packet Decoders for bit/flag values where relevant.
  • Use Paste Output / Structured Parser for CLI evidence.
  • Use Packet Filters to prove the wire boundary.

Evidence rule

A decoded field proves what is present in that packet/output at that moment. Continue through the verification chain before concluding end-to-end behavior.

Confirmation

Confirm action

Continue?