![background image](http://html2.mh-extra.com/html/h3c/wa-series/wa-series_layer-2-command-reference_3130149070.webp)
62
Default level
2: System level
Parameters
enable
: Configures the ports as edge ports.
disable
: Configures the ports as non-edge ports.
Description
Use
stp edged-port enable
to configure the ports as edge ports.
Use
stp edged-port disable
to configure the ports as non-edge ports.
Use
undo stp edged-port
to restore the default.
By default, all ports are non-edge ports.
If a port directly connects to a user terminal rather than another device or a shared LAN segment, this
port is regarded as an edge port. When 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. H3C recommends you to configure ports directly connecting to user terminals as edge ports.
Configuration BPDUs from other devices usually 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.
Among loop guard, root guard and edge port settings, only one function (whichever is configured the
earliest) takes effect on a port at the same time.
Related commands:
stp loop-protection
and
stp root-protection
.
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 enable
stp enable
Syntax
stp enable
undo stp enable
View
System view, Ethernet interface view, WLAN mesh interface view
Default level
2: System level
Parameters
None
Description
Use
stp enable
to enable the spanning tree feature globally.
Use
undo stp enable
to disable the spanning tree feature.