CCNP · Lesson 1 of 5
802.1Q Trunks in Depth: CCNP-Level Troubleshooting
In the CCNA you learned to configure a trunk. In the CCNP you are asked why a VLAN does not pass even though the trunk is up.
In a nutshell
A trunk in "trunking" state does not mean every VLAN passes. A VLAN can be dropped by the allowed list, by not existing, by VTP pruning or by STP blocking it.
In this lesson
The three lists of show interfaces trunk
This command shows three VLAN lists and each one filters the previous one. Reading them in order tells you exactly where a VLAN is lost.
SW1# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gi1/0/1 on 802.1q trunking 999
Port Vlans allowed on trunk
Gi1/0/1 10,20,30,99,999
Port Vlans allowed and active in management domain
Gi1/0/1 10,20,99,999
Port Vlans in spanning tree forwarding state and not pruned
Gi1/0/1 10,99,999
| List | If the VLAN is missing, the cause is… |
|---|---|
| 1. Allowed on trunk | It is not in switchport trunk allowed vlan. |
| 2. Allowed and active | The VLAN does not exist or is suspended on this switch (VLAN 30 here). |
| 3. Forwarding and not pruned | STP blocks it on that port or VTP pruning removed it (VLAN 20 here). |
DTP and the VTP domain
DTP carries the VTP domain name in its messages. If two switches in dynamic mode have different VTP domains, they do not negotiate the trunk and the link stays in access mode. With switchport mode trunk on both sides the trunk comes up anyway, which is why static configuration is preferred.
SW1# show dtp interface gi1/0/1
SW1# show interfaces gi1/0/1 switchport
Administrative Mode: dynamic desirable
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Negotiation of Trunking: On
Other typical causes
- Encapsulation: on switches that support ISL,
switchport mode trunkfails unless you first setswitchport trunk encapsulation dot1q. - Err-disabled: because of BPDU Guard, port security or an inconsistent EtherChannel. Check
show interfaces status err-disabled. - EtherChannel: members must have the same allowed VLAN list, native VLAN and mode; otherwise they are suspended.
- SVI autostate: an SVI comes up if at least one port in its VLAN is forwarding. With
switchport autostate excludea port (an analyzer port, for example) no longer counts.
Key idea
Always troubleshoot in this order: Layer 1 → operational mode → encapsulation → VLAN lists → native VLAN → STP.
What you must remember
- show interfaces trunk has 3 lists: allowed, active, and forwarding and not pruned.
- If it is missing from "active", the VLAN does not exist on that switch.
- DTP does not negotiate a trunk if the VTP domain is different.
- Check err-disabled, EtherChannel and autostate when a VLAN does not come up.
Check what you learned
4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.