Specifications

spanning-tree cost
157
spanning-tree cost
Sets the path cost of the applicable port. This command is applied to PVST+, Single
Spanning Tree, and Multiple Spanning Tree.
Syntax
To set or change information:
spanning-tree cost <Cost>
To delete information:
no spanning-tree cost
Input mode
(config-if)
Parameters
<Cost>
Specifies the path cost value. The lower the <cost> value, the higher the possibility
that the port will be used for forwarding the applicable frames.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
When
short is set by the spanning-tree pathcost method command:
1 to 65535
When
long is set by the spanning-tree pathcost method command:
1 to 200000000
3. Note on using this parameter:
Changing the path cost value might change the topology.
Default behavior
The method of applying the path cost is set by the spanning-tree pathcost method
command.
Impact on communication
None
When the change is applied
The change is applied immediately after setting values are changed.
Notes
1. The value of this command is not applied if the spanning-tree vlan cost command,
the
spanning-tree single cost command, or the spanning-tree mst cost
command is set.
2. The value of this command is not applied if the
spanning-tree vlan pathcost
method command or the spanning-tree single pathcost method command is set.
Related commands
spanning-tree pathcost method