
Spanning-Tree Commands
78-20269-01 Command Line Interface Reference Guide
375
29
Example
The following example defines the BPDU packet as flooding when the spanning
tree is disabled on
gi3
.
Console(config)#
interface
gi3
Console(config-if)#
spanning-tree bpdu flooding
29.15 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.
Syntax
spanning-tree bpduguard
{enable | disable}
no spanning-tree bpduguard
Parameters
enable—Enables BPDU Guard.
disable—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.
Console(config)#
interface
gi5