Specifications
Spanning Tree Configuration Command Set
Reviewing and Setting Spanning Tree Port Parameters
Matrix E1 Series (1G58x-09 and 1H582-xx) Configuration Guide 6-59
6.2.2.9 set spantree portcost
Use this command to assign a cost value to a Spanning Tree or port. This parameter is used to
determine the best path between Spanning Tree devices. Therefore, lower values should be assigned
to ports attached to faster media, and higher values assigned to ports with slower media.
set spantree portcost port-string cost [sid]
Syntax Description
Command Defaults
If sid is not specified, SID 0 will be assumed.
Command Type
Switch command.
Command Mode
Read-Write.
NOTE: Port cost takes precedence over port priority (set spantree portpri). The cost
to the root is updated by each bridge at the root port.
port-string Specifies the port(s) to which to assign a cost value. For a
detailed description of possible port-string values, refer to
Section 4.1.2.
cost Specifies a cost value. Ranges are:
• 0 to 65535 with legacy path cost enabled.
• 0 to 200000000 with legacy path cost disabled.
NOTES: A cost value of 0 will allow a port’s default
cost, which is based on link speed, to be used.
If the link is part of a trunk, the sum of all link
speeds in the trunk should be used as the cost
value.
For details on the set legacypathcost command, refer to
Section 6.2.1.31.
sid (Optional) Sets a cost value for a specific SID.