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.
When the command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.
When the command is configured in Layer 2 aggregate interface view, it takes effect only on the aggregate interface.
When the 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 Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] stp loop-protection
Related commands
stp edged-port
stp root-protection