13-20
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 13 Configuring Optional Spanning-Tree Features
Configur ing Optiona l Spanning-Tree Features
To disable root guard, use the no spanning-tree guard interface configuration command.

Enabling Loop Guard

You ca n use l oo p gu ard to p revent altern ate o r root po rts f rom b ec omi ng desi gnated po rts b eca use of a
failur e that leads to a u nidirectional l ink. This feature is m ost effe ctive when it is conf igured on th e entire
switched network. Loop guard operates only on ports that are considered point-to-point by the spanning
tree.
Note Yo u canno t ena ble bo th l oo p g ua rd a nd roo t gu ar d at th e sam e t ime .
You can enable this feature if your switch is running PVST or MSTP. The MSTP is available only if you
have the EI installed on your sw itch.
Beginning in privileged EXEC mode, follow these steps to enable loop guard:
To gl obal ly d is able l o op gua rd , use t he no spa nning-tree loopguard default global c onfigurat ion
command. You c an overrid e the setting of the no spanning-tr ee loopguard default global configuration
comm and by u s ing the spanning- tree guard loop inter face configurat ion comm and.
Step 5 show running-config Verify your e ntrie s.
Step 6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step 1 show spanning-tree active
or
show spanning-tree mst
Determine which ports are alternate or root ports.
Step 2 configure terminal Enter g lob al c onfigura tion m ode .
Step 3 spanning-tree loopguard default Enabl e loop guar d.
By default, loop guard is disabled.
Step 4 end Return to pr ivileged EX EC m ode.
Step 5 show running-config Verify you r entr ies.
Step 6 copy running-config startup-config (Optional) Save your entries in the configuration file.