12-15
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter12 Configuring Optiona l Spa nning-Tree Features Configuring Optional Spanning-Tree Features
To disable root guard, use the no spanning-tree guard interface configuration command.
Enabling Loop Guard (Optional)
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. Loop guard operates only on ports that are considered point-to-point by the spanning
tree.
Note You cannot enable both loop guard and root guard at the same time.
Beginning in privileged EXEC mode, follow these steps to enable loop guard. This procedure is
optional:
To globally disable loop guard, use the no spanning-tree loopguard default global configuration
command. You can override the setting of the no spanning-tree loopguard def ault global configuration
command by using the spanning-tree guard loop interface configuration command.
Step3 spanning-tree guard root Enable root guard on the interface.
By default, root guard is disabled on all interfaces.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 show spanning-tree active
or
show spanning-tree mst
Determine which ports are alternate or root ports.
Step2 configure terminal Enter global configuration mode.
Step3 spanning-tree loopguard default Enable loop guard.
By default, loop guard is disabled.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.