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

A troubleshooting order

  1. Is the link up/up? show interfaces status.
  2. Is it trunking? show interfaces trunk; if absent, compare show interfaces Gi1/0/1 switchport on both ends (administrative and operational mode, negotiation).
  3. Do the native VLANs match? Look for %CDP-4-NATIVE_VLAN_MISMATCH.
  4. Is the VLAN allowed, active and forwarding on both ends? Read all three VLAN lists.
  5. 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,99

The 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

trunkdynamic desirabledynamic autoaccess
trunkTrunkTrunkTrunkMismatch (do not)
dynamic desirableTrunkTrunkTrunkAccess
dynamic autoTrunkTrunkAccessAccess
accessMismatchAccessAccessAccess

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 trunkMode, encapsulation, status, native VLAN and the three VLAN lists.
show interfaces Gi1/0/1 switchportAdministrative versus operational mode and negotiation.
show dtp interface Gi1/0/1DTP state and counters.
show vlan briefWhether the VLAN exists.

Exam traps

Check yourself

show interfaces trunk lists 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