31
464
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.
Command Mode
Interface Configuration (Ethernet, Port-channel) mode
User Guidelines
The command can be enabled when the spanning tree is enabled (useful when the
port is in the PortFast mode) or disabled.
Example
The following example shuts down gi5 when it receives a BPDU.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
31.17 clear spanning-tree detected-protocols
Use the clear spanning-tree detected-protocols Privileged EXEC command to
restart the STP migration process (force renegotiation with neighboring switches)
on all interfaces or on the specified interface
Syntax
clear spanning-tree detected-protocols
{enable | disable}
interface gi5
spanning-tree bpduguard enable
[interface interface-id]
78-21075-01 Command Line Interface Reference Guide
Spanning-Tree Commands