Correct Answer: Correct answer is: (D) Spanning-tree portfast.
Exam Relevance: CCNA, CCNP, CCIE
Difficulty: Easy
Concept notes: Spanning Tree Protocol (STP) is used to prevent loops in a network by blocking redundant paths. The "spanning-tree portfast" command is used to disable STP on a port connected to a non-switch device, such as a server, to ensure immediate connectivity without waiting for STP to converge.
Common Mistakes: Students may mistakenly believe that "spanning-tree off" or "disable spanning-tree" commands are valid options to disable STP on a port, but these commands do not exist in the context of Cisco IOS.
Explanations: The "spanning-tree portfast" command is specifically designed to disable STP on a port connected to a non-switch device, such as a server. This ensures that the port immediately transitions to the forwarding state, bypassing the STP convergence process. This is the correct command to use in this scenario.
Option Analysis: - Option A: "disable spanning-tree" is not a valid command in Cisco IOS for disabling STP on a specific port.
- Option B: "spanning-tree off" is not a valid command in Cisco IOS for disabling STP on a specific port.
- Option C: "spanning-tree security" is a feature to protect against unauthorized devices, not to disable STP.
- Option D: "spanning-tree portfast" is the correct command to disable STP on a port connected to a non-switch device.