Spanning-tree path-cost – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 546
![background image](/manuals/427254/546/background.png)
Spanning Tree Commands
Software Reference for x310 Series Switches
19.56
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
spanning-tree path-cost
Use this command in Interface Configuration mode for a switch port interface only to set
the cost of a path for the specified port. This value then combines with others along the
path to the root bridge in order to determine the total cost path value from the particular
port, to the root bridge. The lower the numeric value, the higher the priority of the path.
This applies when the port is the root port.
Use this command for RSTP, STP or MSTP. When MSTP mode is configured, this will apply
to the port’s path cost for the CIST.
Syntax
spanning-tree path-cost <pathcost>
no spanning-tree path-cost
Default
The default path cost values and the range of recommended path cost values depend on
the port speed, as shown in the following table from the IEEE 802.1q-2003 and IEEE
802.1d-2004 standards.
Mode
Interface Configuration mode for switch port interface only.
Example
Parameter
Description
<pathcost>
<1-200000000> The cost to be assigned to the port.
Port speed
Default path cost
Recommended path cost
range
Less than 100 Kb/s
1Mbps
10Mbps
100 Mbps
1 Gbps
10 Gbps
100 Gbps
1Tbps
10 Tbps
200,000,000
20,000,000
2,000,000
200,000
20,000
2,000
200
20
2
20,000,000-200,000,000
2,000,000-20,000,000
200,000-2,000,000
20,000-200,000
2,000-20,000
200-2, 000
20-200
2-200
2-20
awplus#
configure terminal
awplus(config)#
interface port1.0.2
awplus(config-if)#
spanning-tree path-cost 123