1-23
Normally, configuration BPDUs cannot reach an edge port because the port is not connected to another
switch. But when the BPDU guard function is disabled on an edge port, configuration BPDUs sent
deliberately by a malicious user may reach the port. If an edge port receives a BPDU, it turns to a
non-edge port.
Loop guard, root guard, and edge port settings are mutually exclusive. With one of these functions
enabled on a port, any of the other two functions cannot take effect even if you have configured it on the
port.
Examples
# Configure Ethernet 1/0/1 as an edge port.
z Configure Ethernet 1/0/1 as an edge port in Ethernet port view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp edged-port enable
z Configure Ethernet 1/0/1 as an edge port in system view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] stp interface Ethernet 1/0/1 edged-port enable
# Configure Ethernet 1/0/2 to Ethernet 1/0/4 as edge ports in system view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] stp interface Ethernet 1/0/2 to Ethernet 1/0/4 edged-port enable
stp loop-protection
Syntax
z Ethernet port view:
stp loop-protection
undo stp loop-protection
z System view:
stp interface interface-list loop-protection
undo stp interface interface-list loop-protection
View
System view, Ethernet port view