3.1.a Troubleshoot 802.1Q trunks, whether configured statically or negotiated
ENCOR 350-401 v1.2 · 3.0 Infrastructure
Trunks fail in a handful of ways: the two ends do not agree to trunk, the native VLANs differ, a VLAN is missing from the allowed list or the VLAN database, or encapsulation differs. ENCOR expects you to troubleshoot static and negotiated (DTP) trunks quickly from the show commands.
What you must know
- Predict DTP results for every mode combination and spot the auto + auto trap.
- Find a native VLAN mismatch from CDP messages and
show interfaces trunk. - Use the three VLAN lists in
show interfaces trunkto find where a VLAN is lost. - Check encapsulation and VTP-related causes (VLAN missing on one switch).
A troubleshooting order
- Is the link up/up?
show interfaces status. - Is it trunking?
show interfaces trunk; if absent, compareshow interfaces Gi1/0/1 switchporton both ends (administrative and operational mode, negotiation). - Do the native VLANs match? Look for
%CDP-4-NATIVE_VLAN_MISMATCH. - Is the VLAN allowed, active and forwarding on both ends? Read all three VLAN lists.
- Does the VLAN exist on both switches?
show vlan brief.
SW1# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gi1/0/1 on 802.1q trunking 99
Port Vlans allowed on trunk
Gi1/0/1 10,20,30,99
Port Vlans allowed and active in management domain
Gi1/0/1 10,20,99
Port Vlans in spanning tree forwarding state and not pruned
Gi1/0/1 10,99The frames are tagged and sent, but SW1 drops them (1). Creating VLAN 30 on SW1 fixes it; show interfaces trunk would show it under "allowed and active".
DTP outcomes
| trunk | dynamic desirable | dynamic auto | access | |
|---|---|---|---|---|
| trunk | Trunk | Trunk | Trunk | Mismatch (do not) |
| dynamic desirable | Trunk | Trunk | Trunk | Access |
| dynamic auto | Trunk | Trunk | Access | Access |
| access | Mismatch | Access | Access | Access |
DTP frames carry the VTP domain name: two dynamic ports with different VTP domains do not negotiate a trunk. switchport nonegotiate stops DTP, so the far end must be statically set too.
Commands
show interfaces trunk | Mode, encapsulation, status, native VLAN and the three VLAN lists. |
show interfaces Gi1/0/1 switchport | Administrative versus operational mode and negotiation. |
show dtp interface Gi1/0/1 | DTP state and counters. |
show vlan brief | Whether the VLAN exists. |
Exam traps
- dynamic auto on both ends stays an access link.
- A VLAN in the allowed list still needs to exist on the switch.
- Native VLAN mismatch leaks traffic between VLANs; CDP reports it.
- DTP does not negotiate between different VTP domain names.
Check yourself
show interfaces trunklists VLAN 40 as allowed but not "allowed and active". Why?- VLAN 40 does not exist (or is shut) on this switch.
- Both ends are dynamic auto. What do you change?
- Set one or both ends to
switchport mode trunk(or one to dynamic desirable). - A VLAN is allowed and active but missing from the forwarding list. What next?
- Check spanning tree for that VLAN (blocked port) and VTP pruning.
Labs
Try it live: Troubleshoot trunks and EtherChannels
More topics in 3.0 Infrastructure
- 3.1.c Configure and verify RSTP and MST, plus protections such as root guard and BPDU guard
- 3.2.a Compare EIGRP and OSPF: algorithm, load balancing, path selection, metrics, areas
- 3.2.b Configure simple OSPFv2/v3: multiple areas, summarization, filtering, network types, passive interfaces
- 3.2.c Configure and verify eBGP between directly connected neighbors
- 3.2.d Describe policy-based routing
- 3.3.a Interpret NTP and PTP configurations
- 3.3.b Configure NAT and PAT
- 3.3.c Configure first-hop redundancy with HSRP and VRRP
- 3.3.d Describe multicast: RPF check, PIM-SM, IGMPv2/v3, SSM, bidir, MSDP