![H3C S5120-SI Series Operation Manual Download Page 165](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174165.webp)
1-25
To do...
Use the command...
Remarks
Configure the port(s) as edge
port(s)
stp
edged-port enable
Required
All Ethernet ports are non-edge
ports by default.
z
With BPDU guard disabled, when a port set as an edge port receives a BPDU from another port, it
will become a non-edge port again. To restore the edge port, re-enable it.
z
If a port directly connects to a user terminal, configure it as an edge port and enable BPDU guard
for it. This enables the port to transition to the forwarding state fast while ensuring network security.
Configuration example
# Configure GigabitEthernet 1/0/1 to be an edge port.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp edged-port enable
Setting the Link Type of a Port to P2P
A point-to-point link is a link directly connecting two devices. If the two ports across a point-to-point link
are root ports or designated ports, the ports can rapidly transition to the forwarding state after a
proposal-agreement handshake process.
Configuration procedure
Follow these steps to set the type of a connected link to P2P:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter Ethernet
interface view,
or Layer 2
aggregate
interface view
interface interface-type
interface-number
Enter
interface view
or port group
view
Enter port
group view
port-group manual
port-group-name
Required
Use either command.
Configurations made in interface
view will take effect on the current
port only; configurations made in
port group view will take effect on
all ports in the port group.
Set the link type to P2P
stp point-to-point
{
auto
|
force-false
|
force-true
}
Optional
The default setting is
auto
;
namely the port automatically
detects whether its link is
point-to-point.