![HP FlexNetwork 5130 HI series Command Reference Manual Download Page 142](http://html.mh-extra.com/html/hp/flexnetwork-5130-hi-series/flexnetwork-5130-hi-series_command-reference-manual_165888142.webp)
134
Usage guidelines
Path cost is an important factor in spanning tree calculation. Setting different path costs for a port in
MSTIs allows VLAN traffic flows to be forwarded along different physical links. This results in
VLAN-based load balancing.
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 calculates the role of the port and initiates a state transition.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect only on that
interface.
When the setting is configured in Layer 2 aggregate interface view, it takes effect only on the
aggregate interface.
When the setting is configured on a member port in an aggregation group, is takes effect only after
the port leaves the aggregation group.
If you do not specify an MSTI or VLAN, this command sets the path cost of the ports in the MSTP
CIST or in the STP or RSTP spanning tree.
Examples
# In MSTP mode, set the path cost of port GigabitEthernet 1/0/3 in MSTI 2 to 200.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] stp instance 2 cost 200
# In PVST mode, set the path cost of port GigabitEthernet 1/0/3 in VLAN 2 to 200.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] stp vlan 2 cost 200
Related commands
•
display
stp
•
stp
pathcost-standard
stp edged-port
Use
stp edged-port
to configure a port as an edge port.
Use
undo stp edged-port
to configure a port as a non-edge port.
Syntax
stp edged-port
undo stp edged-port
Default
All ports are non-edge ports.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Usage guidelines
A port directly connecting to a user terminal rather than another device or a shared LAN segment can
be configured as an edge port. In case the network topology changes, an edge port does not cause
Summary of Contents for FlexNetwork 5130 HI series
Page 302: ...294 ...