CCNA · Lesson 13 of 13
VLAN Verification and Troubleshooting
In the exam and at work, what matters is not configuring: it is knowing how to find what is wrong.
In a nutshell
With four show commands you can find almost any VLAN problem: missing VLAN, wrong port, misconfigured trunk or missing routing.
In this lesson
The 4 commands you must master
| Command | What it tells you |
|---|---|
show vlan brief | Existing VLANs and their access ports. Trunks do not appear. |
show interfaces trunk | Trunk ports, encapsulation, native VLAN and allowed/active VLANs. |
show interfaces fa0/1 switchport | Administrative and operational mode, access VLAN, voice VLAN, native VLAN and whether DTP negotiates. |
show mac address-table vlan 10 | Which MACs the switch learned in that VLAN and on which port. |
SW1# show interfaces fa0/3 switchport
Name: Fa0/3
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Negotiation of Trunking: Off
Access Mode VLAN: 20 (ACCOUNTING)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Most common errors
| Symptom | Likely cause | How you see it |
|---|---|---|
| A PC has no connectivity within its VLAN | Port in the wrong VLAN, or VLAN deleted | show vlan brief, show interfaces switchport |
| PCs in the same VLAN on different switches cannot see each other | The VLAN does not exist on one switch or is not allowed on the trunk | show interfaces trunk |
| The trunk does not form | auto + auto, or one side in access | show interfaces switchport |
| NATIVE_VLAN_MISMATCH messages | Different native VLAN on each end | show interfaces trunk on both switches |
| VLANs cannot talk to each other | Missing router/SVI, missing ip routing, wrong gateway or dot1Q with the wrong VLAN | show ip interface brief, show run |
Quick troubleshooting method
- Does the VLAN exist on every switch in the path? →
show vlan brief - Is the PC port in the right VLAN? →
show interfaces switchport - Is the trunk up and does it allow that VLAN? →
show interfaces trunk - Does the native VLAN match on both ends?
- If the problem is between VLANs: right gateway on the PC? subinterface or SVI up?
ip routing?
What you must remember
- show vlan brief does not show trunk ports.
- show interfaces trunk: native and allowed VLANs.
- show interfaces switchport: administrative vs. operational mode.
- Always check: VLAN exists → port → trunk → native → Layer 3.
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.