140
<Sysname> system-view
[Sysname] stp log enable tc
stp loop-protection
Use stp loop-protection to enable loop guard on a port.
Use
undo stp loop-protection to disable loop guard on a port.
Syntax
stp loop-protection
undo stp
loop-protection
Default
Loop guard is disabled.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Usage guidelines
On a port, the loop guard feature is mutually exclusive with the root guard feature or the edge port
setting.
If this command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.
If this command is configured in Layer 2 aggregate interface view, it takes effect only on the
aggregate interface.
If this command is configured on a member port in an aggregation group, it takes effect only after the
port leaves the aggregation group.
Examples
# Enable loop guard on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp loop-protection
Related commands
stp edged-port
stp root-protection
stp max-hops
Use stp max-hops to set the maximum number of hops for an MST region.
Use
undo stp max-hops to restore the default.
Syntax
stp max-hops hops
undo stp max-hops