Use it when a link is up but one or more VLANs do not pass, or the link does not become a trunk.
Trunk Troubleshooting
Trunk troubleshooting compares both ends of a link for mode, native VLAN, allowed VLANs and VLAN existence, and finds the first point where a VLAN stops being carried.
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.
show interfaces <interface> switchportShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show interfaces <interface> switchportReferenceInspect access/trunk mode, VLANs, native VLAN and negotiation state.
Cisco IOS XE · mixedshow interfaces trunkShowDisplay trunk state, native VLAN and allowed/active VLANs.
Use when: Determine whether a trunk formed and whether a specific VLAN is permitted/active/forwarding locally.
Quick note: Best per-VLAN trunk boundary check; compare both ends and every hop.
Cisco IOS XE · mixedshow interfaces switchportShowShows administrative/operational switchport mode, access VLAN, native VLAN and trunk details.
Use when: Establish the actual switchport role and VLAN assignment for access/trunk/voice troubleshooting.
Quick note: Primary local switchport-mode evidence; combine with show interfaces trunk for trunk VLAN lists.
show vlan briefShowCompact VLAN membership/status view.
Use when: Quickly confirm VLAN existence and access-port membership.
Quick note: Best first VLAN database check; move to switchport/trunk state next.
Cisco IOS XE · mixedHow to read the output
show interfaces <interface> switchportLook first: line/protocol state, errors/discards, rate, duplex/speed, last input/output
Healthy: State and counters align with expected traffic and physical conditions.
Warning: CRC/input errors, drops, resets, queue drops or unexpected negotiation.
Does not prove: An interface counter is a symptom until correlated with path/time/workload.
show interfaces trunkLook first: trunk status, native VLAN, allowed/active/forwarding VLAN lists
Healthy: Expected trunk is up and VLAN is allowed, active and forwarding.
Warning: VLAN missing from any stage, native mismatch or non-trunk interface.
Does not prove: VLAN allowed on trunk does not prove endpoint MAC/L3 reachability.
show interfaces switchportLook first: line/protocol state, errors/discards, rate, duplex/speed, last input/output
Healthy: State and counters align with expected traffic and physical conditions.
Warning: CRC/input errors, drops, resets, queue drops or unexpected negotiation.
Does not prove: An interface counter is a symptom until correlated with path/time/workload.
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 First 30 seconds Verify boundary
Immediate answer: Compare both trunk ends for operational mode, native VLAN and allowed/active VLANs before changing VLAN creation or STP.
Verification chain: physical/link state → operational trunk mode → native VLAN → allowed/active VLAN → STP forwarding → MAC learning → host test
Stop condition: Stop at the first hop where the required VLAN is not operationally carried; an up trunk is not evidence that this VLAN crosses it.
Step 2 Known-good, broken and proof-boundary verification Verify boundary
Known-good trunking means both ends agree on trunk mode/encapsulation behavior, native VLAN, expected allowed VLANs, and the target VLAN forwards without STP inconsistency; the original host traffic then succeeds. Broken state includes access/trunk mismatch, allowed-VLAN omission, native mismatch or VLAN-specific STP block. “Trunking” operational state does not show every VLAN is carried, and an allowed list does not show STP forwarding; those are separate limits of what the checks show.
Step 3 Step-by-step troubleshooting Narrow the fault
Boundary rule: Stop at the first hop where the required VLAN is not operationally carried; an up trunk is not evidence that this VLAN crosses it.
Step 4 Verification & troubleshooting Narrow the fault
1. Show link up. 2. Compare show interfaces switchport on both ends. 3. Compare show interfaces trunk. 4. Check VLAN existence. 5. Check STP/MAC learning and the Layer 3 gateway only after the trunk boundary is confirmed.
Step 5 Troubleshooting order Narrow the fault
Use one affected VLAN as a probe. Confirm physical link and operational port mode first. Then trace that VLAN through show interfaces trunk allowed/active/forwarding state on every hop, confirm VLAN existence, and only then move to STP/MAC/gateway evidence. This prevents a broad “VLAN problem” from becoming random configuration changes.
Step 6 Failure isolation: observation → implication → next check Narrow the fault
If the link is up but no VLANs pass, verify both ends are operational trunks and not an access/trunk mode mismatch. If only one VLAN fails, compare allowed/active VLAN lists and STP state for that VLAN. If untagged or control traffic behaves oddly, compare native VLANs. If trunk state flaps, inspect DTP/static mode and EtherChannel consistency. Test with one known host/MAC in the affected VLAN and confirm MAC learning on both switches before moving to L3.
Subtopics
Go one level deeper into this subject.
A native VLAN mismatch exists when the two ends of an 802.1Q trunk assign untagged trunk traffic to different VLAN IDs.
Subtopic Allowed VLAN mismatchAn allowed-VLAN mismatch occurs when a VLAN is permitted on one trunk side/path but excluded somewhere else, so that VLAN cannot traverse the full trunk path.
Subtopic Access/trunk mode mismatchAn access/trunk mode mismatch occurs when the two ends of a link do not agree on whether frames should be carried as a single untagged access VLAN or as an 802.1Q trunk.
Subtopic DTP negotiationDTP negotiation problems occur when dynamic modes, `nonegotiate`, static modes or non-DTP peers do not combine to produce the intended trunk state.
Start from the symptom
Prove the nearest boundary, branch on the observation, and repeat the original test after the minimum controlled change.
Symptom-first flow VLAN works locally but not across the trunk 7 decision steps
First proof
Prove the VLAN locally on both switches before changing trunk configuration.
Useful read-only checks: show vlan brief · show interfaces trunk · show interfaces switchport
Step 1 Local VLAN exists Observe → decide
Confirm the VLAN is active on both switches.
If healthy: VLAN exists and is active.
If broken: Fix the local VLAN state before inspecting the trunk.
Step 2 Ports are really trunks Observe → decide
Confirm administrative and operational switchport mode on both ends.
If healthy: Both ends operate as trunks.
If broken: Correct access/trunk mode or negotiation mismatch.
Step 3 VLAN is allowed Observe → decide
Compare allowed VLAN lists end to end.
If healthy: The VLAN is permitted on both ends.
If broken: Correct the smallest allowed-list mismatch.
Step 4 VLAN is forwarding Observe → decide
Confirm the VLAN is active and forwarding on the trunk.
If healthy: The VLAN appears in forwarding state.
If broken: Investigate STP or local VLAN state before changing routing.
Step 5 Native VLAN agrees Observe → decide
Compare native VLAN configuration on both ends.
If healthy: Native VLAN semantics agree.
If broken: Correct the mismatch only after confirming intended design.
Step 6 Endpoint MAC crosses the boundary Observe → decide
Check MAC learning on the expected access and trunk path.
If healthy: MAC state appears on the expected interfaces.
If broken: Stop at the first switch where MAC learning diverges.
Step 7 Repeat the original test Observe → decide
Retest the same endpoint-to-endpoint flow.
If healthy: The original VLAN path works end to end.
If broken: Do not call the trunk fixed until the original test passes.
Proof limit
A passing step proves only that boundary; continue until the original symptom is explained and retested.
Always read both ends. Typical causes, in order: one side not trunking (mode mismatch or DTP), the VLAN not in the allowed list, the VLAN not created on one switch, STP blocking or VTP pruning, native VLAN mismatch.
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.
ReferenceHow it works1 section · depth on demand
Mechanics, state owner and dependency boundary
An 802.1Q trunk has administrative/operational mode, native VLAN, allowed VLAN list and per-VLAN forwarding dependencies such as STP. A port can operationally trunk while a required VLAN is pruned, not allowed or blocked by STP. Native-VLAN mismatch can affect untagged/control traffic without stopping all tagged VLANs. DTP negotiation, switchport mode and VLAN existence are separate owners and should be read from both ends.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Troubleshooting trunks: compare both ends
Most trunk problems come from the two ends disagreeing on mode, native VLAN or allowed VLANs. The Catalyst 9300 trunk guide documents the verification commands show interfaces <id> switchport and show interfaces <id> trunk.
C9300-A# show interfaces 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,120
Port Vlans in spanning tree forwarding state and not pruned
Te1/1/1 20
C9300-A# show vlan id 30
VLAN id 30 not found in current VLAN database
C9300-A# show spanning-tree vlan 120 interface Te1/1/1
Vlan Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
VLAN0120 Altn BLK 2 128.49 P2p
VLAN 30 is allowed but doesn't exist on this switch. VLAN 120 exists but is blocked by spanning tree.
Checklist by symptom
| Symptom | Check | Typical cause |
|---|---|---|
| Link up but not trunking | show interfaces switchport on both ends | auto–auto, or access on one end |
| One VLAN doesn't cross | The three lists in show interfaces trunk | Not allowed, doesn't exist, STP blocked or pruned |
| Untagged traffic in the wrong VLAN | Native VLAN on both ends | Native mismatch |
| VLANs flapping active/suspended | Native and management VLAN | Same ID for both (the guide describes about 15 s of flapping) |
| Trunk won't come up with 802.1X | Port configuration | The guide states 802.1X can't run on trunk or dynamic ports |
| Port-channel members suspended | Trunk settings per member | All members must share the same trunk configuration |
VTP pruning (documented)
Pruning removes VLANs from a trunk where no downstream ports need them. Only VLANs 2–1001 can be pruned, the default pruning-eligible list is 2–1001, and VTP pruning must be enabled for it to work. Extended VLANs are never pruned.
Order of checks
1. Is it trunking? (Status trunking on both ends)
2. Same native VLAN?
3. VLAN allowed on both ends?
4. VLAN exists on both switches?
5. STP forwarding for that VLAN on this link?
Documented example, not captured output.
Method
Trunk troubleshooting checks whether the link is a trunk on both sides, which VLANs it carries, and whether STP forwards them.
1. show interfaces trunk — is the port listed? Native VLAN, allowed and forwarding VLANs.
2. show interfaces <if> switchport — administrative vs operational mode.
3. Compare both ends: mode, native VLAN, allowed lists, encapsulation.
4. Check the VLAN exists on both switches (show vlan brief).
5. Check STP state for the VLAN on the trunk (show spanning-tree vlan <id>).
| Symptom | Likely cause |
|---|---|
| Port not a trunk | One side access or both DTP auto |
| VLAN missing on trunk | Not in allowed list or not created |
| Native VLAN mismatch log | Different native VLANs |
| VLAN allowed but not forwarding | STP blocking or VTP pruning |
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 → Trunk Troubleshooting. 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%