Spanning-Tree Commands
78-21075-01 Command Line Interface Reference Guide
31.15 spanning-tree guard root
use the spanning-tree guard root Interface Configuration (Ethernet, Port-channel)
mode command to enable Root Guard on all spanning-tree instances on the
interface. Root guard prevents the interface from becoming the root port of the
device. Use the no form of this command to disable the root guard on the interface.
Syntax
spanning-tree guard root
no spanning-tree guard root
Default Configuration
Root guard is disabled.
Command Mode
Interface Configuration (Ethernet, Port-channel) mode
User Guidelines
Root Guard can be enabled when the device operates in any mode (STP, RSTP
and MSTP).
When Root Guard is enabled, the port changes to the alternate state if the
spanning-tree calculations select the port as the root port.
Example
The following example prevents gi1 from being the root port of the device.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
31.16 spanning-tree bpduguard
Use the spanning-tree bpduguard Interface Configuration (Ethernet, port-channel)
mode command to shut down an interface when it receives a Bridge Protocol Data
Unit (BPDU). Use the no form of this command to restore the default configuration.
interface gi1
spanning-tree guard root
31
463