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.
802.1Q Trunking
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.
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?
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
Subtopics
Go one level deeper into this subject.
A static 802.1Q trunk is an administratively forced Layer-2 trunk that carries multiple VLANs with tagging rules, an allowed-VLAN set and a native-VLAN treatment that must agree across the link.
Subtopic Native VLANThe native VLAN is the VLAN associated with untagged traffic on an 802.1Q trunk under the platform’s trunking behavior; a mismatch can place the same untagged frame into different VLANs at opposite ends.
Subtopic DTPDTP: Dynamic desirable, Dynamic auto, Disable negotiation, Verification.
Subtopic Trunk TroubleshootingTrunk Troubleshooting: Native VLAN mismatch, Allowed VLAN mismatch, Access/trunk mode mismatch, DTP negotiation.
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.
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
| Item | Detail |
|---|---|
| Default interface mode | Dynamic auto |
| Native VLAN | VLAN 1 by default; configurable 1–4094; frames in the native VLAN are sent untagged |
| Allowed VLANs | All (1–4094) by default |
| Native VLAN mismatch | Can cause spanning-tree loops |
| 802.1X | Can't be enabled on trunk or dynamic ports |
| Port security | A trunk port can't be a secure port |
Reading show interfaces trunk
| Section | Meaning |
|---|---|
| Allowed on trunk | The configured list |
| Allowed and active | VLANs that also exist on this switch |
| Forwarding and not pruned | VLANs 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.
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.
| Check | Command |
|---|---|
| Trunk state, native, allowed, forwarding VLANs | show interfaces trunk |
| Per-port mode | show interfaces Gi1/0/48 switchport |
The tag adds 4 bytes, so trunks handle frames up to 1522 bytes.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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%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.
Quick lookup tables
Access vs trunk frame handling
How endpoint access traffic differs from 802.1Q trunk traffic.
| Port role | VLANs carried | Typical endpoint framing | Key check |
|---|---|---|---|
| Access | One data access VLAN (+ optional voice VLAN behavior) | Ordinary data frames untagged | show interfaces switchport |
| Trunk | Multiple VLANs | Non-native VLANs tagged with 802.1Q; native normally untagged | show interfaces trunk |
802.1Q Trunking · reference boundaries
Compact technical reference for the most important state and interpretation boundaries.
| Trunk property | Healthy reference | What it does not prove |
|---|---|---|
| Operational trunk | Link is acting as a trunk | Target VLAN is carried |
| Allowed list | Target VLAN permitted by policy | VLAN exists or forwards |
| Native VLAN | Both ends use intended native VLAN | Tagged VLANs are healthy |
| STP forwarding | Target VLAN can use the link | Remote endpoint/service health |