Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

802.1Q Trunking

Direct answer

An 802.1Q trunk carries several VLANs over one link by adding a 4-byte tag with the VLAN ID to each frame. Frames in the native VLAN are sent untagged.

When to use this

Use it between switches, to a router on a stick, or to a hypervisor host — and when one VLAN works over a link but another does not.

First 30 seconds

1. show interfaces trunk on both switches — port listed as trunking?

2. Native VLAN the same on both ends?

3. VLAN in "allowed", "allowed and active" and "forwarding" on both ends?

4. Missing in "active" → VLAN not created on that switch. Missing in "forwarding" → STP blocking or VTP pruning.

5. show interfaces <if> switchport — not negotiated into access mode?

Operational verification

both ends trunking → same native VLAN → VLAN allowed on both ends → VLAN exists on both switches → VLAN forwarding in STP → frames tagged and delivered

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 · Cisco IOS XE
Scope / prerequisiteUse it between switches, to a router on a stick, or to a hypervisor host — and when one VLAN works over a link but anot…
What next?3 suggested next steps
Child topics (this level)4
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 Verification path Verify boundary

Primary bounded procedure: Use show interfaces trunk, confirm native/allowed VLAN agreement and then verify the exact VLAN end to end.

Step 2 Verification and output interpretation Verify boundary

Use show interfaces trunk as the primary canonical command. Read the interface role, encapsulation/status, native VLAN, configured allowed VLANs and the VLANs that are actually active/forwarding. For a specific VLAN, confirm both peers agree on trunk role and native VLAN, then follow the same VLAN through each intermediate trunk. Interface up/up only shows the link boundary, but it does not show the target VLAN is carried. Where exact switchport intent matters, use the interface switchport view to distinguish administrative mode from operational mode and to identify access/native/allowed settings.

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
Drill down

Subtopics

Go one level deeper into this subject.

Key points

A VLAN passes a trunk only if it is allowed on both ends, exists on both switches, and is forwarding in spanning tree. show interfaces trunk lists three stages: allowed, allowed and active, and forwarding (not pruned). The native VLAN must match on both ends.

Key checks
  • show interfaces trunk — trunk ports, mode, encapsulation, native VLAN, allowed / active / forwarding VLANs.
  • show interfaces <if> switchport — administrative and operational mode, negotiation, native VLAN.
  • show dtp interface <if> — DTP state and negotiation.
  • show spanning-tree interface <if> — per-VLAN STP state on the trunk.
  • show cdp neighbors <if> detail — the neighbour's port, and native VLAN mismatch messages.
ReferenceWhat it is1 section · depth on demand

What it is

IEEE 802.1Q trunking carries traffic for multiple VLANs across one Ethernet link by adding a VLAN tag to frames for tagged VLANs. Cisco trunks normally send the native VLAN untagged unless platform features change that behavior.

ReferenceHow it works1 section · depth on demand

How it works

How it works: Layer-2 forwarding depends on physical link state, switchport mode, VLAN admission on the port and the resulting MAC forwarding entry.

ReferenceImportant terms & boundaries5 sections · depth on demand

802.1Q frame behavior

An 802.1Q tag inserts VLAN identification and priority information into the Ethernet frame. On normal Cisco trunk behavior, frames for tagged VLANs carry the 802.1Q header; native-VLAN frames are normally sent untagged. The receiving side maps each frame into the appropriate VLAN before normal switching.

In depth

802.1Q trunking carries several VLANs over one link

An 802.1Q trunk inserts a 4-byte tag into each Ethernet frame, carrying a 12-bit VLAN ID, so the receiver knows which VLAN the frame belongs to. The Catalyst 9300 trunk guide covers only IEEE 802.1Q encapsulation, available on all Ethernet interfaces.

C9300(config)# interface TenGigabitEthernet1/1/1
C9300(config-if)# switchport mode trunk
C9300(config-if)# switchport nonegotiate
C9300(config-if)# switchport trunk native vlan 998
C9300(config-if)# switchport trunk allowed vlan 20,30,120
C9300# show interfaces TenGigabitEthernet1/1/1 trunk
Port        Mode             Encapsulation  Status        Native vlan
Te1/1/1     on               802.1q         trunking      998
Port        Vlans allowed on trunk
Te1/1/1     20,30,120
Port        Vlans allowed and active in management domain
Te1/1/1     20,30,120
Port        Vlans in spanning tree forwarding state and not pruned
Te1/1/1     20,30,120

Documented defaults and rules

ItemDetail
Default interface modeDynamic auto
Native VLANVLAN 1 by default; configurable 1–4094; frames in the native VLAN are sent untagged
Allowed VLANsAll (1–4094) by default
Native VLAN mismatchCan cause spanning-tree loops
802.1XCan't be enabled on trunk or dynamic ports
Port securityA trunk port can't be a secure port

Reading show interfaces trunk

SectionMeaning
Allowed on trunkThe configured list
Allowed and activeVLANs that also exist on this switch
Forwarding and not prunedVLANs STP forwards on this trunk

A VLAN that appears in the first list but not in the last is either missing on the switch, blocked by STP, or pruned.

Load sharing on trunks (from the guide)

Two trunks between the same switches can carry different VLANs actively, by giving each VLAN a better STP port priority on one link (spanning-tree vlan <list> port-priority) or a lower cost (spanning-tree vlan <list> cost). Cost also works when the trunks go to two different switches.

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.

Quick reference

802.1Q trunking carries several VLANs over one link by inserting a 4-byte tag with the VLAN ID (12 bits) and priority (CoS, 3 bits) into each frame. Frames in the native VLAN are sent untagged.

interface Gi1/0/48
 switchport mode trunk
 switchport trunk native vlan 999
 switchport trunk allowed vlan 10,20,30
 switchport nonegotiate

Documented example, not captured output.

CheckCommand
Trunk state, native, allowed, forwarding VLANsshow interfaces trunk
Per-port modeshow interfaces Gi1/0/48 switchport

The tag adds 4 bytes, so trunks handle frames up to 1522 bytes.

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

Concept and state model

IEEE 802.1Q inserts a four-byte tag containing PCP, DEI and a 12-bit VLAN ID between the source MAC and the original EtherType context. On a trunk, tagged frames preserve VLAN identity across the link while native-VLAN traffic is normally transmitted untagged. The receiving switch classifies untagged frames into its local native VLAN, which is why a native-VLAN mismatch can move traffic into the wrong broadcast domain even when the physical link remains up. A trunk also has an allowed-VLAN policy and an operational set of VLANs that are present and forwarding. These are distinct states: a VLAN can be allowed by configuration but absent locally, blocked by STP or otherwise not forwarding.

Operational boundaries and common misconceptions

The word trunking is not end-to-end evidence. A required VLAN may be missing from the allowed list, absent from the local database, pruned or blocked by STP. Native-VLAN mismatches can preserve connectivity for some tagged VLANs while corrupting only untagged/native traffic, making the link look mostly healthy. DTP state is also separate from 802.1Q forwarding state: negotiation can establish a trunk, but the final allowed/native/STP conditions still decide whether a VLAN works. Keep link health and VLAN carriage as separate reference facts.

ReferenceConfiguration & state1 section · depth on demand

Configuration model and design choices

Prefer deterministic static trunk intent on infrastructure links: set trunk mode explicitly, choose an intentional native VLAN, and restrict the allowed VLAN list to what the design requires. Disable negotiation where the environment calls for static behavior rather than relying on DTP to decide a role dynamically. Changes to the allowed list should be treated as path changes because removing one VLAN can isolate only a subset of services while the interface stays up. Avoid using the native VLAN as a convenient general user VLAN; keeping it deliberate reduces ambiguity around untagged control or misclassified traffic. When an EtherChannel is used, configure trunk characteristics consistently at the port-channel layer according to the platform’s model.

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 Switching → 802.1Q Trunking. 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%
2026-09-13 · vendor docCisco Catalyst 9000 / IOS XE current

Official Cisco vendor documentation reviewed for bounded reference claims: 802.1Q trunking, allowed VLANs, native VLAN and DTP boundaries. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/switches/lan/c9000/lyr2-fwd/vlan/vlan-configuration-guide/configure-vlan-trunks.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
802.1q
Embedded reference data

Quick lookup tables

Access vs trunk frame handling

How endpoint access traffic differs from 802.1Q trunk traffic.

Port roleVLANs carriedTypical endpoint framingKey check
AccessOne data access VLAN (+ optional voice VLAN behavior)Ordinary data frames untaggedshow interfaces switchport
TrunkMultiple VLANsNon-native VLANs tagged with 802.1Q; native normally untaggedshow interfaces trunk

802.1Q Trunking · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

Trunk propertyHealthy referenceWhat it does not prove
Operational trunkLink is acting as a trunkTarget VLAN is carried
Allowed listTarget VLAN permitted by policyVLAN exists or forwards
Native VLANBoth ends use intended native VLANTagged VLANs are healthy
STP forwardingTarget VLAN can use the linkRemote endpoint/service health
Confirmation

Confirm action

Continue?