R2511-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V5)
60
the smallest value. This affects the reasonableness of forwarding path selection. To solve this
problem, use dot1t as the standard for default path cost calculation, or manually set the path cost
for a port (see "Configuring path costs of ports")
.
Configuration procedure
To specify a standard for the device to use when it calculates the default path cost:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Specify a standard for the
device to use when it
calculates the default path
costs of its ports.
stp pathcost-standard
{ dot1d-1998 | dot1t | legacy }
Optional.
The default setting is legacy.
Configuring path costs of ports
When the path cost of a port changes, the system re-calculates the role of the port and initiates a state
transition.
To configure the path cost of ports:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter interface view or port
group view.
• Enter Ethernet interface view or Layer 2
aggregate interface view:
interface interface-type
interface-number
• Enter port group view:
port-group manual port-group-name
Use one of the commands.
3. Configure the path cost of the
ports.
• In STP/RSTP mode:
stp cost cost
• In MSTP mode:
stp [ instance instance-id ] cost cost
Use one of the commands.
By default, the system
automatically calculates the
path cost of each port.
Configuration example
# In MSTP mode, specify the device to use IEEE 802.1d-1998 to calculate the default path costs of its ports,
and set the path cost of Ethernet 1/3 to 200 on MSTI 2.
<Sysname> system-view
[Sysname] stp pathcost-standard dot1d-1998
[Sysname] interface ethernet 1/3
[Sysname-Ethernet1/3] stp instance 2 cost 200










