2-557
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set spantree bpdu-guard
set spantree bpdu-guard
To enable or disable spanning tree BPDU guard on a port, use the set spantree bpdu-guard command.
set spantree bpdu-guard mod/port {enable | disable | default}
Syntax Description
Defaults The default is BPDU guard is default.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines This command is not supported by the NAM.
You must enable PortFast mode before you can enable BPDU guard for BPDU guard to work correctly.
When you enable BPDU guard, a port is moved into a n er rdisa ble s tate when a BP DU is re cei v ed on th at
port. When you disable a BPDU guard, a PortFast-enabled nontrunking port will stay up when it receives
BPDUs, which may cause spanning tree loops.
If you enter the default keyword, the spanning tree port is set to the global BPDU gua rd sta te.
To enable or disable BPDU guard for all ports on the switch, enter the set spantree global-default
bpdu-guard command.
Examples This example shows how to enable BPDU guard on module 3, po rt 1:
Console> (enable) set spantree bpdu-guard 3/1 enable
Spantree port 3/1 bpdu guard enabled.
Console> (enable)
Related Commands set spantree global-default
show spantree portfast
mod/port Number of the module and the port on the module.
enable Enables the spanning tree BPDU guard.
disable Disables the spanning tree BPDU guard.
default Sets spanning tree BPDU guard to the global BPDU guard state. See
the “Usage Guidelines” section for more information.