Spanning TreeCCNA 200-301

All Switches with Same STP Priority — Random Root Election

Presenting Symptom

The network experiences intermittent connectivity and suboptimal traffic flow, with no single switch consistently acting as the root bridge in the Spanning Tree Protocol (STP) topology.

Network Context

This issue occurs in a small branch office network consisting of four Cisco Catalyst 2960 switches running IOS 15.0. The switches are interconnected in a partial mesh topology with redundant links. All switches have been configured with the same STP priority (32768) by default, leading to a random root election based on the lowest MAC address.

Diagnostic Steps

1

Check the current root bridge and STP status

show spanning-tree vlan 1
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     0011.2233.4455
             This bridge is the root
  Bridge ID  Priority    32768
             Address     0011.2233.4455
  ...

Look for the Root ID and Bridge ID. If the root bridge is not the expected switch (e.g., the core switch), or if the root changes after a reboot or link flap, it indicates that the root election is not deterministic.

2

Verify STP priority configuration on all switches

show running-config | include spanning-tree vlan
spanning-tree vlan 1 priority 32768
spanning-tree vlan 1 priority 32768
...

If all switches show the same priority (default 32768), the root bridge is determined solely by the lowest MAC address. This can lead to an undesired switch becoming root, especially if a less capable switch has a lower MAC.

3

Identify the MAC addresses of all switches to predict root

show spanning-tree vlan 1 | include Address
Address     0011.2233.4455
Address     0011.2233.4466
Address     0011.2233.4477
Address     0011.2233.4488

Compare the MAC addresses. The switch with the lowest MAC will become root. If this is not the desired root (e.g., a distribution switch), the problem is confirmed.

4

Check for topology changes and root instability

show spanning-tree vlan 1 detail | include Topology change|Number of topology changes
Topology change flag set, Topology change times: 10
Number of topology changes: 15 last change occurred: 00:05:23 ago

A high number of topology changes indicates instability. Frequent root elections can cause temporary loops or black holes.

Root Cause

All switches have the same default STP priority (32768), so the root bridge is elected based on the lowest MAC address. This results in a random root election that can change if switches are added or replaced, leading to suboptimal traffic flow and potential instability.

Resolution

Configure a lower STP priority on the desired root bridge to ensure it wins the election. For example, on the core switch: Switch(config)# spanning-tree vlan 1 priority 4096 Optionally, set a secondary root on another switch: Switch2(config)# spanning-tree vlan 1 priority 8192 This ensures deterministic root selection.

Verification

Run 'show spanning-tree vlan 1' on the core switch. Expected output should show: Root ID Priority 4096 Address <core MAC> This bridge is the root On other switches, the Root ID should show priority 4096 and the core switch's MAC address.

Prevention

1. Always manually configure STP priorities to designate a primary and secondary root bridge. 2. Use the 'spanning-tree vlan <vlan> root primary' command on the desired root to automatically set priority to 24576. 3. Document the STP root placement in network design to avoid reliance on MAC addresses.

CCNA Exam Relevance

On the CCNA 200-301 exam, this scenario may appear as a troubleshooting question where you must identify why a specific switch is not the root bridge. The exam tests understanding of STP root election criteria: lowest bridge ID (priority + MAC). Candidates must know that default priority is 32768 and that changing priority ensures deterministic root selection.

Exam Tips

1.

Remember that STP root election uses bridge ID: priority (4 bits) + MAC address. Lower is better.

2.

The default priority is 32768. To guarantee a switch becomes root, set priority to 0 or use 'spanning-tree vlan <vlan> root primary'.

3.

In exam simulations, if you see multiple switches with same priority, the root is the one with lowest MAC address.

Commands Used in This Scenario

Test Your CCNA Knowledge

Practice with scenario-based questions to prepare for the CCNA 200-301 exam.

Practice CCNA Questions