Command Line Interface Guide

Spanning Tree Commands 755
RSTP provides BPDU protection function against such attack. After BPDU
protection function is enabled on a switch, the system disables an edge port
that has received BPDU and notifies the network manager about it. The
disabled port can only be enabled by the no version of the command.
Syntax
spanning-tree bpdu-protection
no spanning-tree bpdu-protection
Default Configuration
BPDU protection is not enabled.
Command Mode
Global Configuration mode
User Guidelines
This command has no user guidelines.
Example
The following example enables BPDU protection.
console(config)#spanning-tree bpdu-protection
spanning-tree cost
Use the spanning-tree cost command in Interface Configuration mode to
configure the external spanning-tree path cost for a port. To return to the
default port path cost, use the no form of this command.
Syntax
spanning-tree cost
cost
no spanning-tree cost
cost
— The port path cost. (Range: 0–200,000,000)
2CSPC4.X8100-SWUM100.book Page 755 Wednesday, August 29, 2012 6:23 PM