C613-50170-01 Rev B
Command Reference for x510 Series
686
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
PANNING
T
REE
C
OMMANDS
SPANNING
-
TREE
PATH
-
COST
spanning-tree path-cost
Overview
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
awplus#
configure terminal
awplus(config)#
interface port1.0.2
awplus(config-if)#
spanning-tree path-cost 123
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