2-620
Catalyst 6500 Series Switch Command Reference—Release8.1
78-15474-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set spantree portfast bpdu-guard
set spantree portfast bpdu-guardTo enable or disable spanning tree PortFast BPDU guard on a port, use the set sp antree po rtfas t
bpdu-guard command.
set spantree portfast bpdu-guard mod/port {enable | disable | default}
Syntax Description
Defaults The default is PortFast BPDU guard is default.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines This command is not supported by the NAM.
You must enable spanning tree PortFas t mode be fore you can enable spanni ng tree Port Fast BP DU guard
for BPDU guard to work correctly.
When you enable spanning tree PortFast BPDU guard, a nontrunking PortFast-enable d por t i s moved
into an errdisable state when a BPDU is received on that port. When you disable spanning tree PortFast
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 spanning tree BPDU guard on mo dule 3 , por t 1:
Console> (enable) set spantree portfast 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 PortFast BPDU guard.
disable Disables the spanning tree PortFast BPDU guard.
default Sets spanning tree PortFast BPDU guard to the global BPDU guard state. See the
“Usage Guidelines” section for more information.