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

66
The path cost setting of a port can affect the role selection of the port. When the path cost of a port is
changed, the system re-calculates the role of the port and initiates a state transition.
Examples
# In MSTP mode, set the path cost of port GigabitEthernet 4/0/3 in MSTI 2 to 200.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/3
[Sysname-GigabitEthernet4/0/3] stp instance 2 cost 200
Related commands
display stp
stp pathcost-standard
stp edged-port
Use stp edged-port enable to configure one or more ports as edge ports.
Use stp edged-port disable to configure one or more ports as non-edge ports.
Use undo stp edged-port to restore the default.
Syntax
stp edged-port { enable | disable }
undo stp edged-port
Default
All ports are non-edge ports.
Views
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
enable: Configures one or more ports as edge ports.
disable: Configures one or more ports as non-edge ports.
Usage guidelines
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.
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 will not cause a
temporary loop. You can enable the port to transit to the forwarding state rapidly by configuring it as an
edge port. HP recommends you to configure ports directly connecting to user terminals as edge ports.