274 
34.19 spanning-tree guard loop 
Description 
The spanning-tree guard loop command is used to enable the Loop Protect 
function for a port. Loop Protect is to prevent the loops in the network brought by 
recalculating STP because of link failures and network congestions. To disable 
the Loop Protect function, please use no spanning-tree guard loop command. 
Syntax 
spanning-tree guard loop 
no spanning-tree guard loop 
Command Mode 
Interface Configuration Mode (interface gigabitEthernet / interface range 
gigabitEthernet / interface port-channel / interface range port-channel) 
Privilege Requirement 
Only Admin, Operator and Power User level users have access to these 
commands. 
Example 
Enable the Loop Protect function for port 2: 
T2600G-28TS(config)# interface gigabitEthernet 1/0/2 
T2600G-28TS(config-if)# spanning-tree guard loop 
34.20 spanning-tree guard root 
Description 
The spanning-tree guard root command is used to enable the Root Protect 
function for a port. With the Root Protect function enabled, the root bridge will 
set itself automatically as ERROR-PORT  when receiving BPDU packets with 
higher priority, in order to maintain the role of root ridge. To disable the Root 
Protect function, please use no spanning-tree guard root command. 
Syntax 
spanning-tree guard root 
no spanning-tree guard root 
Command Mode 
Interface Configuration Mode (interface gigabitEthernet / interface range 
gigabitEthernet / interface port-channel / interface range port-channel)