R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

30
stp edged-port
Use stp edged-port to configure a port as an edge port.
Use undo stp edged-port to configure a port as a non-edge port.
Syntax
stp edged-port
undo stp edged-port
Default
All ports are non-edge ports.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
If a port directly connects to a user terminal rather than to another device or a shared LAN segment, this
port is regarded as an edge port. In case the network topology changes, an edge port does not cause
a temporary loop. You can enable the port to transit to the forwarding state rapidly by configuring it as
an edge port. HP recommends that you configure ports that directly connect to user terminals as edge
ports.
Typically, configuration BPDUs from other devices cannot reach an edge port, because the edge port
does not connect to any other device. If a port receives a configuration BPDU when the BPDU guard
function is disabled, the port functions as a non-edge port, even if you configure it as an edge port.
On a port, the loop guard function and the edge port setting are mutually exclusive.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only the interface.
Examples
# Configure GigabitEthernet 2/1/1 as an edge port.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] stp edged-port
Related commands
stp bpdu-protection
stp loop-protection
stp root-protection
stp enable
Use stp enable to enable the spanning tree feature.
Use undo stp enable to disable the spanning tree feature.
Syntax
stp enable