Use this command to set the administrative path cost on a port and one or more Spanning Trees.
port-string | Specifies the port(s) on which to set an admin path cost. For a detailed description of possible port-string values, refer to Port String Syntax Used in the CLI in the S-, K-, and 7100 Series Configuration Guide. |
cost | Specifies the port path cost. Va1id values are:
|
sid sid | (Optional) Sets the admin path cost for a specific Spanning Tree identifier. Valid values are 0 - 4094. If not specified, SID 0 will be assumed. |
If sid is not specified, admin path cost will be set for Spanning Tree 0.
All command modes.
By default, this value is set to 0, which forces the port to recalculate Spanning Tree path cost based on the speed of the port and whether or not legacy path cost is enabled. For details on using the set spantree legacypathcost command, refer to set spantree legacypathcost.
This example shows how to set the admin path cost to 200 for ge.3.2 on SID 1:
System(rw)->set spantree adminpathcost ge.3.2 200 sid 1