376 Spanning-Tree Commands
Spanning-tree guard root
The spanning-tree guard root Interface Configuration mode command enables root guard on all
spanning tree instances on the interface. Root guard restricts the interface to be the switch root port. Use
the no form of this command to disable root guard on the interface.
Syntax
• spanning-tree guard root
• no spanning-tree guard root
Default Configuration
Root guard is disabled.
Command Modes
Interface Configuration (Ethernet, port-channel) mode.
User Guidelines
• Root guard can be enabled when the switch work in STP, RSTP and MSTP.
When root guard is enabled, if spanning-tree calculations cause a port to be selected as the root
port, the port transitions to the alternate state.
Example
The following example enable root guard on port g8.
Console(config)# interface ethernet g8
Console(config-if)# spanning-tree guard root
5400_CLI.book Page 376 Wednesday, December 17, 2008 4:33 PM