Cisco Certified Network Professional Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for your Cisco Certified Network Professional Test with confidence. Study using flashcards and multiple choice questions, each with detailed hints and explanations. Ensure your success on the exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What command would you use to show the STP state for a specific interface?

  1. show spanning tree

  2. show spanning interface

  3. display stp interface

  4. view stp port state

The correct answer is: show spanning interface

To display the Spanning Tree Protocol (STP) state for a specific interface, the command used is indeed "show spanning interface." This command provides detailed information about the STP status, including the role and state of the specified interface within the STP topology. When you execute this command with the interface specified, it reveals essential information such as whether the interface is in a forwarding or blocking state, which is crucial for understanding network behavior and troubleshooting issues within the STP framework. The other commands listed do not serve the specific purpose of showing the STP state for an individual interface. While "show spanning tree" gives an overview of the STP configuration and the states of all interfaces on the switch, it does not target a specific interface directly. Similarly, "display stp interface" and "view stp port state" do not exist as recognized commands in Cisco IOS, making them invalid options for this task. Thus, the choice to use "show spanning interface" effectively identifies and shows the STP state for the desired interface.