Troubleshooting VLAN and Trunk Issues

VLAN and trunking issues can cause communication failures between devices in different VLANs. Below is a step-by-step guide to diagnose and resolve VLAN and trunking problems.


1. Check VLAN Configuration

Issue: Devices in the same VLAN cannot communicate.

Solution:


2. Verify Trunk Links

Issue: Devices in different VLANs cannot communicate across switches.

Solution:


3. Check Native VLAN Mismatch

Issue: Trunk is up, but VLAN traffic is not passing correctly.

Solution:


4. Check Spanning Tree (STP) Blocking

Issue: Some VLANs work, others don’t.

Solution:


5. Check Inter-VLAN Routing Issues

Issue: Devices in different VLANs cannot communicate.

Solution:


6. Check VTP Configuration

Issue: VLANs are not propagating between switches.

Solution:


7. Check for DTP Issues (If Trunk is Not Forming)

Issue: Trunk mode is not working.

Solution:


8. Restart the Trunking Process (Last Resort)

If all configurations are correct but the VLAN is still not passing traffic, restart the trunk port:

interface GigabitEthernet0/1
shutdown
no shutdown

Summary of Key Troubleshooting Commands

CommandPurpose
show vlan briefChecks if VLANs exist on the switch.
show interfaces trunkVerifies which ports are in trunk mode.
show interfaces switchportDisplays VLAN and trunk settings on an interface.
show spanning-tree interface Gi0/1Checks if STP is blocking the port.
show vtp statusConfirms VTP domain, mode, and VLAN propagation.
show ip interface briefVerifies if SVI (inter-VLAN routing) is configured.
show cdp neighborsConfirms if the switch is connected to the expected devices.

Best Practices to Avoid VLAN and Trunk Issues

Manually configure trunk ports (switchport mode trunk).
Disable DTP (switchport nonegotiate) unless auto-negotiation is needed.
Ensure native VLANs match on both ends of a trunk.
Use show interfaces trunk to verify allowed VLANs.
Check STP (show spanning-tree) to prevent VLAN blocking.

renjithbs Avatar

Posted by

Leave a comment