You cannot enable both loop guard and root guard at the same time.Note
You can enable this feature if your switch is running PVST+, Rapid PVST+, or MSTP.
This procedure is optional. Beginning in privileged EXEC mode, follow these steps to enable loop guard on
the switch.
SUMMARY STEPS
1.
Enter one of the following commands:
•
show spanning-tree active
•
show spanning-tree mst
2.
configure terminal
3.
spanning-tree loopguard default
4.
end
DETAILED STEPS
PurposeCommand or Action
Verifies which interfaces are alternate or root
ports.
Enter one of the following commands:
Step 1
•
show spanning-tree active
•
show spanning-tree mst
Example:
Switch# show spanning-tree active
or
Switch# show spanning-tree mst
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Enables loop guard.spanning-tree loopguard default
Step 3
Example:
Switch(config)# spanning-tree loopguard default
By default, loop guard is disabled.
Catalyst 2960-XR Switch Layer 2 Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29424-01 101
Configuring Optional Spanning-Tree Features
Enabling Loop Guard