Use undo stp loop-protection to disable the loop guard function on the ports.
undo stp loop-protection
The loop guard function is disabled.
Ethernet interface view, aggregate interface view
Predefined user roles
On a port, the loop guard function, the root guard function, and the edge port setting are mutually
exclusive, and the one that is configured first takes effect.
When the setting is configured in Ethernet interface view, it takes effect on only that interface.
When the setting is configured in aggregate interface view, it takes effect on only the aggregate
When the setting is configured on a member port in an aggregation group, it takes effect only after the
port leaves the aggregation group.
# Enable the loop guard function on Ten-GigabitEthernet 1/0/1.
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] stp loop-protection
Use stp max-hops to set the maximum number of hops for the MST region.
Use undo stp max-hops to restore the default.
stp max-hops hops
undo stp max-hops
The maximum number of hops for an MST region is 20.