A SERVICE OF

logo

613
Normally, configuration BPDUs from other devices cannot reach an edge port
because it does not connect to any other device. Before the BPDU guard
function is enabled, if a port receives a configuration BPDU, the port is working
actually as a non-edge port even if you have configured in as an edge port.
Examples # Configure port Ethernet 1/1 as a non-edge port.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] stp edged-port disable
stp loop-protection
Syntax stp loop-protection
undo stp loop-protection
View Ethernet interface view, port group view
Parameters None
Description Use the
stp loop-protection command to enable the loop guard function for a
port or a group of ports.
Use the
undo stp loop-protection command to restore default loop guard
setting for a port of a group of ports.
By default, the loop guard function is disabled.
Note that, configured in Ethernet interface view, the setting is effective on the
current port only; configured in port group view, the setting is effective on all the
ports in the port group.
Examples # Enable the loop guard function for port Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] stp loop-protection
stp max-hops
Syntax stp max-hops hops
undo stp max-hops
View System view
Parameters hops: Maximum hops, in the range of 1 to 40