Specifications
spanning-tree pathcost method
174
spanning-tree pathcost method
Sets whether to use 16-bit values or 32-bit values as the path cost of ports. This command
is applied to PVST+ and Single Spanning Tree, but not to Multiple Spanning Tree.
When the
spanning-tree vlan pathcost method command or the spanning-tree
single pathcost method command is set, the value of the spanning-tree pathcost
method command is not applied.
If setting of the
spanning-tree cost, spanning-tree vlan cost, or spanning-tree
single cost command is omitted, the following value is applied to the path cost according
to the interface speed and the
spanning-tree pathcost method command settings:
When
short is set by the spanning-tree pathcost method command:
10Mbit/s: 100
100 Mbit/s: 19
1 Gbit/s: 4
When
long is set by the spanning-tree pathcost method command:
10 Mbit/s: 2000000
100 Mbit/s: 200000
1 Gbit/s: 20000
Syntax
To set or change information:
spanning-tree pathcost method { long | short }
To delete information:
no spanning-tree pathcost method
Input mode
(config)
Parameters
{ long | short }
If
long is set, a 32-bit value is used. If short is set, a 16-bit value is used.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
long or short
3. Note on using this parameter:
- The default value of the path cost changes.
- Changing the path cost value might change the topology.
- If the path cost value is set to 65536 or larger, you cannot change the
parameter to
short.
Default behavior
short is set by path cost mode.