97
Configured in Layer 2 Ethernet interface view, the setting takes effect on the current interface only.
Configured in port group view, the setting takes effect on all ports in the port group.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on a member port in an aggregation group, the setting takes effect only after the port leaves
the aggregation group.
If a port directly connects to a user terminal rather than to another switch or a shared LAN segment, this
port is regarded as an edge port. When the network topology changes, an edge port will not cause a
temporary loop. You can enable the port to transition to the forwarding state rapidly by configuring it as
an edge port. H3C recommends that you configure the ports directly connecting to the user terminals as
edge ports. Otherwise, the port can be blocked and changes to the forwarding state after a period twice
the Forward Delay. In the waiting period, service traffic is interrupted.
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, Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use the
stp enable
command to enable MSTP globally in system view, on a port in interface view, or on
multiple ports in port group view.
Use the
undo stp enable
command to disable MSTP globally or on the port(s).
By default, the switch is globally MSTP-disabled. When you enable MSTP globally, it will be enabled on
all ports.
Configured in system view, the setting takes effect globally.