12-9
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter12 Configuring Optiona l Spa nning-Tree Features Configuring Optional Spanning-Tree Features

Understanding Loop Guard

You can use loop guard to prevent alternate or root ports from becoming designated ports b eca use o f a
failure that leads to a unidirectional link. This feature is most effective when it is conf igured on th e entire
switched network.
If your switch is running PVST+, you can enable this feature by using the spanning-tree loopguard
default global configuration command.
When the switch is operating in PVST+ mode, loop guard prevents alternate and root ports from
becoming designated ports, and spanning tree does not send B PDUs on root or alt erna te ports.
Configuring Optional Spanning-Tree Features
These sections describe how to configure optional spanning-tree feature s:
Default Optional Spanning-Tree Configuration, page 12-9
Optional Spanning-Tree Configuration Guidelines, page 12-10
Enabling Port Fast (Optional), page 12-10
Enabling BPDU Guard (Optional), page 12-11
Enabling BPDU Filtering (Optional), page 12-11
Enabling UplinkFast for Use with Redundant Links (Optiona l), pa ge 1 2-1 2
Enabling BackboneFast (Optional), page 12-13
Enabling EtherChannel Guard (Optional), page 12-14
Enabling Root Guard (Optional), page 12-14
Enabling Loop Guard (Optional), page 12-15

Default Optional Spanning-Tree Configuration

Table12-1 shows the de fault o pt iona l spa nni ng- tree co nfigurat ion .
Table12-1 Default Optional Spanning-Tree Configuration
Feature Default Setting
Port Fast, BPDU filtering, BPDU guard Globally disabled (unless they are individually configured
per interface)
UplinkFast Globally disabled
BackboneFast Globally disabled
EtherChannel guard Globally enabled
Root guard Disabled on all interfaces
Loop guard Disabled on all interfaces