Trunk Not Passing a VLAN? A Show-Command Runbook in Order of Likelihood (CCNA)
VLAN 10 crosses the trunk and VLAN 20 doesn't. Six causes in the order they actually happen, each with the symptom, the show command, sample output and the fix. Read show interfaces trunk like a map.
The setup: two switches, one trunk between them on Gi1/0/24. Hosts in VLAN 10 ping each other across the trunk. Hosts in VLAN 20 don’t. Same trunk, same switches.
This post is a runbook, not a lesson. How trunks and 802.1Q tags work is in the Trunks and 802.1Q reference, and how to configure trunks so this doesn’t happen in production is in Cisco trunking best practices. Here you get the six causes in the order we see them in labs, and for each one: the symptom, the command, what the output looks like and the fix.
Before you start: is it the trunk at all?
Rule out the host side in thirty seconds. On each switch:
SW2# show interfaces Gi1/0/5 switchport | include Access Mode VLAN
Access Mode VLAN: 10 (USERS)
If the VLAN 20 host is actually plugged into a VLAN 10 port, or has an IP address from the wrong subnet, the trunk is innocent. Fix the access port and stop here.
One command is your map
Run this on both switches before anything else:
SW1# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gi1/0/24 on 802.1q trunking 1
Port Vlans allowed on trunk
Gi1/0/24 1-10
Port Vlans allowed and active in management domain
Gi1/0/24 1,10
Port Vlans in spanning tree forwarding state and not pruned
Gi1/0/24 1,10
Its four sections line up with the causes below. Find the first section where VLAN 20 is missing and you know where to look:
| VLAN 20 missing from… | Go to |
|---|---|
| The whole output (port not listed) | Cause 4: the trunk never formed |
| “Vlans allowed on trunk” | Cause 1: allowed list |
| “allowed and active in management domain” | Cause 3: VLAN missing or inactive |
| “spanning tree forwarding state and not pruned” | Cause 5 (pruning) or Cause 6 (STP) |
| Every section looks fine | Cause 2: native VLAN mismatch |
Cause 1: VLAN 20 is not in the allowed list
How common: the most common cause by far, usually from switchport trunk allowed vlan 20 typed without add, which replaces the list.
Symptom: VLAN 20 is missing from “Vlans allowed on trunk” on at least one side. Check both: the list only has to be wrong on one switch.
Command and output:
SW1# show interfaces Gi1/0/24 trunk
Port Vlans allowed on trunk
Gi1/0/24 1-10
Fix:
SW1(config)# interface Gi1/0/24
SW1(config-if)# switchport trunk allowed vlan add 20
Confirm the section now reads 1-10,20. If someone typed switchport trunk allowed vlan 20 and VLAN 10 broke too, that’s the same bug: rebuild the list with switchport trunk allowed vlan 1-10,20.
Cause 2: native VLAN mismatch
How common: common in labs, because people change the native VLAN on one switch and forget the other.
Symptom: the native VLAN is the one sent untagged. If SW1 uses native VLAN 20 and SW2 uses native VLAN 1, SW1 sends VLAN 20 frames untagged and SW2 puts them in VLAN 1. With Rapid PVST+ or PVST+, the switches also detect the mismatch and block the port for the affected VLANs.
Commands and output:
SW1# show interfaces trunk | include Native|trunking
Port Mode Encapsulation Status Native vlan
Gi1/0/24 on 802.1q trunking 20
SW2# show interfaces trunk | include Native|trunking
Port Mode Encapsulation Status Native vlan
Gi1/0/24 on 802.1q trunking 1
The log usually tells you first:
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEthernet1/0/24 (20), with SW2 GigabitEthernet1/0/24 (1).
%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 1 on GigabitEthernet1/0/24 VLAN20.
And show spanning-tree vlan 20 shows the port as BKN* with *PVID_Inc next to it.
Fix: make both ends match. Use an unused VLAN, not a user VLAN:
SW1(config-if)# switchport trunk native vlan 999
SW2(config-if)# switchport trunk native vlan 999
Create VLAN 999 on both switches so it is active. The port leaves the inconsistent state on its own once the BPDUs agree.
Cause 3: VLAN 20 missing or inactive on one switch
How common: very common after a new VLAN is added. Someone creates VLAN 20 on SW1 only, or assigns an access port to VLAN 20 and assumes that created it everywhere.
Symptom: VLAN 20 is in “Vlans allowed on trunk” but not in “Vlans allowed and active in management domain”.
Commands and output:
SW2# show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi1/0/1, Gi1/0/2
10 USERS active Gi1/0/5, Gi1/0/6
20 SERVERS act/lshut Gi1/0/10
Two versions of this cause:
- VLAN 20 isn’t listed at all. It doesn’t exist on that switch, so tagged frames for it are dropped.
- VLAN 20 shows
act/lshut(someone ranshutdownunder the VLAN) orsuspended. It exists but isn’t forwarding.
Fix:
SW2(config)# vlan 20
SW2(config-vlan)# name SERVERS
SW2(config-vlan)# no shutdown
If VTP is in server/client mode, create it on the server and check that the client receives it (show vtp status, same domain name and password). In transparent mode, create it on each switch.
Cause 4: the trunk never formed (DTP and mode mismatch)
How common: less common once people configure switchport mode trunk, but it’s the first thing to check when the port doesn’t appear in show interfaces trunk at all.
Symptom: show interfaces trunk doesn’t list Gi1/0/24, and everything except the access VLAN fails.
Command and output:
SW1# show interfaces Gi1/0/24 switchport
Name: Gi1/0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Operational Mode: static access means the port is an access port in VLAN 1. Combinations that don’t trunk:
dynamic autoon both sides (both wait, nobody asks).accesson one side.switchport nonegotiateon one side while the other isdynamic(no DTP frames, so the dynamic side stays access).- Different VTP domain names with dynamic modes. DTP carries the VTP domain and won’t negotiate a trunk across a mismatch.
Fix: set both ends statically:
SW1(config)# interface Gi1/0/24
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport nonegotiate
On older switches that also support ISL, enter switchport trunk encapsulation dot1q before switchport mode trunk, or the command is rejected. Do the same on SW2.
Cause 5: VTP pruning removed VLAN 20
How common: only on networks that run VTP with pruning enabled, but confusing when it happens because the config looks perfect.
Symptom: VLAN 20 is allowed and active but missing from “Vlans in spanning tree forwarding state and not pruned”, and spanning tree shows the port forwarding for VLAN 20.
Commands and output:
SW1# show vtp status | include Pruning
VTP Pruning Mode : Enabled
SW1# show interfaces Gi1/0/24 pruning
Port Vlans pruned for lack of request by neighbor
Gi1/0/24 20
Pruning removes a VLAN from a trunk when the neighbor reports no use for it, usually because SW2 has no active ports in VLAN 20 yet.
Fix: bring up an access port in VLAN 20 on SW2, or keep VLAN 20 off the pruning-eligible list on that trunk:
SW1(config-if)# switchport trunk pruning vlan remove 20
Or turn pruning off on the VTP server with no vtp pruning.
Cause 6: spanning tree is blocking VLAN 20 on this trunk
How common: rare as a fault. If there’s a redundant path, blocking one of them is STP doing its job. It’s a fault when the blocked path is the only one VLAN 20 can use, or when the port is in an inconsistent state.
Symptom: VLAN 20 is missing from the last section of show interfaces trunk, not pruned, and spanning tree shows the port blocking.
Command and output:
SW1# show spanning-tree vlan 20
VLAN0020
Root ID Priority 24596
Address 0c1a.2b3c.4d01
...
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi1/0/23 Root FWD 4 128.23 P2p
Gi1/0/24 Altn BLK 4 128.24 P2p
Altn BLK on Gi1/0/24 means VLAN 20 is reaching SW1 another way (through Gi1/0/23). That’s correct, so check that the other path really carries VLAN 20 end to end. If the root bridge is in the wrong place and traffic takes a poor path, move the root:
SW1(config)# spanning-tree vlan 20 root primary
If the port shows BKN* instead, it’s an inconsistent state, not a normal block. *PVID_Inc points back to Cause 2. Other flags, such as *ROOT_Inc or *LOOP_Inc, come from root guard or loop guard (see BPDU guard vs root guard vs loop guard).
The runbook on one card
- Host port in the right VLAN? (
show interfaces <port> switchport) show interfaces trunkon both switches. Find the first section missing VLAN 20.- Not in “allowed”:
switchport trunk allowed vlan add 20. - Native VLANs differ: match them, check the CDP log and
BKN*. - Not “active”: create or
no shutdownthe VLAN on the switch that lacks it. - Port not listed: set
switchport mode trunkon both ends. - Not “forwarding and not pruned”:
show interfaces <port> pruning, thenshow spanning-tree vlan 20.
Practice it
- VLAN and trunk simulator: break the allowed list or the native VLAN and watch which frames stop.
- Trunks and 802.1Q: the reference, with a hands-on lab.
Running a runbook like this from memory, under time pressure, is what the exam and the job both test. We break trunks on purpose in the 1:1 CCNA program until you can work through it in under two minutes. The first session is free.
Related reading
- Cisco trunking best practices, how to avoid these faults in production
- VLANs without the overload, the core mental model
- VTP and VLANs library topics
Need a hand with your CCNA?
Free 20 minute 1:1 planning call with a senior network engineer. No card. No sales pitch. We walk your situation, map a realistic path, and you decide what to do next.
- 20 minutes, 1:1 with a Cisco NetAcad instructor
- No card, no obligation, no sales pitch
- You pick the slot that fits your week
Get your study plan in a free 20-minute call
- ✓ 1:1 with a senior network engineer, by video
- ✓ You leave with a written study plan and a realistic exam date
- ✓ No card, no sign-up, no sales pitch