Troubleshooting Network Access: VLANs and STP
Troubleshooting network access requires verifying interface statuses, checking VLAN assignments, ensuring trunk port consistency, and validating the STP topology.
Troubleshooting VLANs and Access Ports
When users cannot connect, first verify physical connectivity using `show ip interface brief`. Next, check the VLAN assignment with `show vlan brief`. A common issue is a port assigned to a VLAN that does not exist on the switch, or an access port misconfigured as a trunk port. Ensure the end device has the correct IP subnet corresponding to its VLAN.
Resolving Trunking Issues
Trunk links can fail due to native VLAN mismatches, allowed VLAN lists restricting traffic, or DTP negotiation failures. Use `show interfaces trunk` to verify which ports are trunking and which VLANs are allowed. A native VLAN mismatch will generate CDP error messages and can cause spanning tree loops, so ensure both ends match.
Diagnosing Spanning Tree Problems
STP issues often manifest as complete network slowdowns or disconnected segments. Use `show spanning-tree` to identify the Root Bridge and verify port states. Common problems include a rogue switch taking over as the Root Bridge, or BPDU Guard shutting down ports. Always ensure your core switches have statically configured STP priorities.
❓ Frequently Asked Questions
What does a native VLAN mismatch do?
It causes untagged traffic to leak between different VLANs and can create STP topology issues.
How can I see which VLANs are active on a trunk?
The 'show interfaces trunk' command displays the allowed and active VLANs on all trunk links.
What command shows the root bridge for a VLAN?
Use 'show spanning-tree vlan [id]' to see the Root Bridge ID and the local switch's STP status for that VLAN.