26-15
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 26 Configuring Optional STP Features
About BPDU Guard
About BPDU Guard
Spanning Tree BPDU guard shuts down PortFast edge-configured interfaces that receive BPDUs, rather
than putting them into the spanning tree blocking state.
When configured globally, BPDU Guard is only effective on ports in the operational PortFast edge state.
In a valid configuration, PortFast edge-configured interfaces do not receive BPDUs. Reception of a
BPDU by a PortFast edge-configured interface signals an invalid configuration, such as connection of
an unauthorized device.
BPDU guard provides a secure response to invalid configurations, because the administrator must
manually put the interface back in service.
Note
When the BPDU guard feature is enabled, spanning tree applies the BPDU guard feature to all
PortFast-configured interfaces. BPDU Guard shuts down that interface if a BPDU is received, regardless
of the PortFast port type configuration.
Note
To prevent the port from shutting down, use the
errdisable detect cause bpduguard shutdown vlan
global configuration command to shut down only the offending VLAN on the port where the violation
occurred.
Enabling BPDU Guard
Enabling BPDU Guard Globally
To globally enable BPDU guard on edge ports that receive BPDUs, perform this task:
This example shows how to enable BPDU guard:
Switch(config)#
spanning-tree portfast edge bpduguard
default
Switch(config)#
end
Switch#
This example shows how to verify the configuration:
Switch#
show spanning-tree summary
Root bridge for: Bridge VLAN0025
EtherChannel misconfiguration guard is enabled
Command
Purpose
Step 1
Switch#
configure terminal
Step 2
Switch(config)#
spanning-tree portfast edge
bpduguard
default
Enables BPDU Guard globally by default on all edge
ports of the switch.
Use the
no
version of the command to disable BPDU
guard.
Step 3
Switch(config)#
end
Exits configuration mode.
Step 4
Switch#
show spanning-tree
summary
Verifies the BPDU configuration.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...