3.12.12. spanning-tree bpdu-guard

Syntax

spanning-tree bpdu-guard

no spanning-tree bpdu-guard

Parameter

Default

BPDU guard is disabled

Mode

Interface Configuration

Usage

To enable the BPDU filter, use the command spanning-tree bpdu-guard in the Interface Configuration mode; and use no form of the command to disable the BPDU filter.

Example

The following example enables the BPDU guard for interface gi1.

Switch(config)# interface gi1
Switch(config-if)# spanning-tree bpdu-guard