stp-bpdu-guard

Enables STP BPDU Guard on the Ethernet interfaces.
Syntax
stp-bpdu-guard
no stp-bpdu-guard
Command Default

STP BPDU Guard is disabled by default.

Modes

Interface configuration mode

Usage Guidelines

When a BPDU Guard-enabled port is disabled by BPDU Guard, the device places the port in the errdisable state and displays a message on the console indicating that the port is errdisabled.

The no form of the command disables the STP BPDU Guard on the Ethernet interfaces.

Examples

The following example shows how to enable the STP BPDU Guard on a port.

device(config)# interface ethernet 1/2/1
device(config-if-e1000-1/2/1)# stp-bpdu-guard

The following example shows how to enable the STP BPDU Guard on multiple ports.

device(config)# interface ethernet 1/1/1 to 1/1/9
device(config-mif-1/1/1-1/1/9)# stp-bpdu-guard