46
901
Default Configuration
Root guard is disabled.
Command Mode
Interface (Ethernet, Port Channel) Configuration 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
switchxxxxxx(config)#
switchxxxxxx(config-if)#
46.16 spanning-tree bpduguard
Use the spanning-tree bpduguard Interface (Ethernet, Port Channel) Configuration
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.
Syntax
spanning-tree bpduguard
no spanning-tree bpduguard
Parameters
enable
bpduguard
—Enables BPDU Guard.
disable
bpduguard
—Disables BPDU Guard.
Default Configuration
BPDU Guard is disabled.
1 from being the root port of the device.
gi1
gi1
interface
1
spanning-tree guard root
{enable | disable}
OL-32830-01 Command Line Interface Reference Guide
Spanning-Tree Commands