A network administrator is troubleshooting a switch that is experiencing high CPU utilization. The administrator suspects a switching loop. Which command should be used to verify whether Spanning Tree Protocol has blocked any ports to prevent a loop?
Trap 1: show interfaces status
show interfaces status displays speed, duplex, and VLAN assignment for each port, but it does not show Spanning Tree Protocol states. It can indicate connected or notconnected, but not whether STP has blocked a port. This command is useful for physical layer verification, not for detecting STP topology changes or loops.
Trap 2: show running-config
show running-config displays the current configuration, including STP settings, but it does not show operational STP states or port roles. It can confirm if STP is enabled, but not whether ports are currently blocking. For real-time STP status, operational commands like show spanning-tree are required.
Trap 3: show mac address-table
show mac address-table lists MAC addresses learned per port. A loop can cause MAC address flapping, where the same MAC appears on multiple ports, but this command alone does not show STP states. While useful for detecting flapping, it does not directly verify whether STP has blocked ports to prevent a loop.
- A
show interfaces status
Why it fails: show interfaces status displays speed, duplex, and VLAN assignment for each port, but it does not show Spanning Tree Protocol states. It can indicate connected or notconnected, but not whether STP has blocked a port. This command is useful for physical layer verification, not for detecting STP topology changes or loops.
- B
show running-config
Why it fails: show running-config displays the current configuration, including STP settings, but it does not show operational STP states or port roles. It can confirm if STP is enabled, but not whether ports are currently blocking. For real-time STP status, operational commands like show spanning-tree are required.
- C
show spanning-tree
show spanning-tree displays the STP status for each VLAN, including root bridge, port roles, and port states. If a loop exists, STP will place redundant ports in blocking state. This command reveals which ports are blocking and can confirm whether STP is actively preventing a loop, helping diagnose high CPU caused by topology changes.
- D
show mac address-table
Why it fails: show mac address-table lists MAC addresses learned per port. A loop can cause MAC address flapping, where the same MAC appears on multiple ports, but this command alone does not show STP states. While useful for detecting flapping, it does not directly verify whether STP has blocked ports to prevent a loop.