135
stp edged-port
Use stp edged-port to configure a port as an edge port.
Use
undo stp edged-port to restore the default.
Syntax
stp edged-port
undo stp edged-port
Default
All ports are non-edge ports.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Usage guidelines
A port directly connecting to a user terminal rather than another device or a shared LAN segment can
be configured 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. As a best practice, 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. When BPDU guard is disabled on a port configured as an edge
port, the port acts as a non-edge port if it receives configuration BPDUs.
On a port, the loop guard feature and the edge port setting are mutually exclusive.
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
# Configure GigabitEthernet 1/0/1 as an edge port.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp edged-port
Related commands
stp bpdu-protection
stp loop-protection
stp port bpdu-protection
stp root-protection
stp enable
Use stp enable to enable the spanning tree feature.