πŸ›  Real-World Troubleshooting of Spanning Tree Issues

Spanning Tree Protocol (STP) helps prevent Layer 2 loops, but misconfigurations and failures can still cause network outages. Here’s how to troubleshoot common STP issues effectively.


πŸ” 1️⃣ Issue: Network Loop / Broadcast Storm

🚨 Symptoms:
βœ… High CPU utilization on switches.
βœ… MAC address table fluctuates rapidly.
βœ… End devices lose connectivity intermittently.
βœ… Excessive broadcast/multicast traffic in the network.

πŸ”§ Troubleshooting Steps:

πŸ”Ή Step 1: Check STP Topology & Root Bridge

Switch# show spanning-tree

πŸ”Ή Step 2: Look for Redundant Links Without Blocking Ports

Switch# show spanning-tree blockedports

πŸ”Ή Step 3: Identify the Source of Excessive Traffic

Switch# show mac address-table dynamic | count

πŸ”Ή Step 4: Enable BPDU Guard on Access Ports

Switch(config-if)# spanning-tree bpduguard enable

βœ… Solution: Ensure that only one active path exists between switches, and use BPDU Guard to prevent rogue switches from participating in STP.


πŸ” 2️⃣ Issue: Slow Convergence After a Link Failure

🚨 Symptoms:
βœ… Connectivity drops for 30-50 seconds after a link failure.
βœ… Devices unable to communicate during STP re-convergence.
βœ… STP topology changes frequently.

πŸ”§ Troubleshooting Steps:

πŸ”Ή Step 1: Check STP Timers and Mode

Switch# show spanning-tree detail

πŸ”Ή Step 2: Verify Redundant Links & Active Ports

Switch# show spanning-tree interface Gi0/1

πŸ”Ή Step 3: Enable UplinkFast & BackboneFast for Faster Recovery

Switch(config)# spanning-tree uplinkfast
Switch(config)# spanning-tree backbonefast

βœ… Solution: Upgrade to Rapid PVST+, and enable UplinkFast & BackboneFast for quick failover.


πŸ” 3️⃣ Issue: Unexpected Root Bridge Change

🚨 Symptoms:
βœ… Sudden network instability.
βœ… Traffic is rerouted inefficiently.
βœ… Running show spanning-tree shows a different Root Bridge.

πŸ”§ Troubleshooting Steps:

πŸ”Ή Step 1: Identify the Current Root Bridge

Switch# show spanning-tree root

πŸ”Ή Step 2: Set the Correct Root Bridge Priority

Switch(config)# spanning-tree vlan 10 priority 4096

πŸ”Ή Step 3: Enable Root Guard on Access Layer Uplinks

Switch(config-if)# spanning-tree guard root

βœ… Solution: Ensure correct Root Bridge configuration and apply Root Guard on uplinks.


πŸ” 4️⃣ Issue: Blocked Port Not Recovering (Loop Guard Issue)

🚨 Symptoms:
βœ… Some ports remain in Loop-Inconsistent State indefinitely.
βœ… Network outage on affected VLANs.
βœ… No STP loops detected, but traffic is disrupted.

πŸ”§ Troubleshooting Steps:

πŸ”Ή Step 1: Check the Blocked Ports

Switch# show spanning-tree inconsistentports

πŸ”Ή Step 2: Verify BPDU Reception

Switch# debug spanning-tree bpdu

πŸ”Ή Step 3: Temporarily Disable Loop Guard & Re-enable STP

Switch(config-if)# no spanning-tree guard loop
Switch(config-if)# shutdown
Switch(config-if)# no shutdown

βœ… Solution: Fix the BPDU reception issue and ensure the upstream switch is sending BPDUs correctly.


πŸ” 5️⃣ Issue: Fiber Link Failure Not Detected (UDLD Issue)

🚨 Symptoms:
βœ… STP shows the link as active, but traffic fails.
βœ… Network flapping when fiber links are in use.
βœ… Half-duplex issues on fiber links.

πŸ”§ Troubleshooting Steps:

πŸ”Ή Step 1: Check the Fiber Link State

Switch# show interfaces status
Switch# show udld neighbors

πŸ”Ή Step 2: Enable UDLD Aggressive Mode

Switch(config-if)# udld aggressive

πŸ”Ή Step 3: Reset the Affected Port

Switch(config-if)# shutdown
Switch(config-if)# no shutdown

βœ… Solution: Always enable UDLD Aggressive Mode on fiber links to prevent silent failures.


πŸ›  Summary of STP Troubleshooting Issues & Fixes

IssueSymptomsTroubleshooting CommandsFix
Network Loop / Broadcast StormHigh CPU, MAC flapping, excessive broadcastsshow spanning-tree
show mac address-table
Ensure blocked ports exist
Enable BPDU Guard
Slow Convergence After Link Failure30-50 sec downtimeshow spanning-tree detailUse Rapid PVST+
Enable UplinkFast & BackboneFast
Unexpected Root Bridge ChangeTraffic rerouted, different Root IDshow spanning-tree rootSet correct Root Bridge priority
Enable Root Guard
Blocked Port Not RecoveringPorts in Loop-Inconsistent Stateshow spanning-tree inconsistentports
debug spanning-tree bpdu
Ensure BPDUs are received
Reset Loop Guard
Fiber Link Failure Not DetectedNo traffic, STP still activeshow udld neighbors
show interfaces status
Enable UDLD Aggressive Mode

πŸš€ Pro Tips for STP Troubleshooting

βœ… Document your STP topology β†’ Know the expected Root Bridge & blocked ports.
βœ… Use Rapid PVST+ for faster convergence (Avoid legacy 802.1D).
βœ… Enable BPDU Guard & Root Guard to prevent rogue switches.
βœ… Monitor STP logs (show spanning-tree summary) to detect topology changes.
βœ… Use UDLD Aggressive Mode on fiber links to prevent silent failures.

renjithbs Avatar

Posted by

Leave a comment