R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

67
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.
You cannot configure edge port settings and loop guard on a port at the same time.
Examples
# Configure GigabitEthernet 4/0/1 as an edge port.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] stp edged-port enable
Related commands
stp loop-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
undo stp enable
Default
When the spanning tree feature is enabled globally, the spanning tree feature is enabled on all ports.
Views
System view, Ethernet interface view, port group view, Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
Configured in system view, the setting takes effect globally.
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all member 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.
When you enable the spanning tree feature, the device operates in STP, RSTP, or MSTP mode, depending
on the spanning tree mode setting.
Examples
# In MSTP mode, enable the spanning tree feature globally.
<Sysname> system-view
[Sysname] stp enable
# In MSTP mode, disable the spanning tree feature on port GigabitEthernet 4/0/1.
<Sysname> system-view