CLI Reference Guide-R07

Table Of Contents
Chapter 19
| Spanning Tree Commands
– 461 –
interval - The time to wait before re-enabling an interface. (Range: 30-86400
seconds)
Default Setting
BPDU Guard: Disabled
Auto-Recovery: Disabled
Auto-Recovery Interval: 300 seconds
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
An edge port should only be connected to end nodes which do not generate
BPDUs. If a BPDU is received on an edge port, this indicates an invalid network
configuration, or that the switch may be under attack by a hacker.
If an interface is shut down by BPDU Guard, it must be manually re-enabled
using the no shutdown command if the auto-recovery interval is not specified.
BPDU guard can only be configured on an interface if the edge port attribute is
not disabled (that is, if edge port is set to enabled or auto with the spanning-
tree edge-port command).
Example
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree edge-port
Console(config-if)#spanning-tree bpdu-guard
Console(config-if)#
Related Commands
spanning-tree edge-port (463)
spanning-tree spanning-disabled (471)
spanning-tree cost This command configures the spanning tree path cost for the specified interface.
Use the no form to restore the default auto-configuration mode.
Syntax
spanning-tree cost cost
no spanning-tree cost