Specifications
spanning-tree vlan pathcost method
199
spanning-tree vlan pathcost method
Sets whether to use a 16-bit value or a 32-bit value as the path cost for a PVST+ port.
If the
spanning-tree vlan cost command setting is omitted, the following values are
applied to the path cost according to the interface speed and the
spanning-tree vlan
pathcost method command settings:
When
short is set by the spanning-tree vlan pathcost method command:
10Mbit/s: 100
100 Mbit/s: 19
1 Gbit/s: 4
When
long is set by the spanning-tree vlan pathcost method command:
10 Mbit/s: 2000000
100 Mbit/s: 200000
1 Gbit/s: 20000
Syntax
To set or change information:
spanning-tree vlan <VLAN ID list> pathcost method { long | short }
To delete information:
no spanning-tree vlan <VLAN ID list> pathcost method
Input mode
(config)
Parameters
<VLAN ID list>
Starts configuration of PVST+ for the set VLAN.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
For details about how to set <VLAN ID list> and the specifiable values, see
Specifiable values for 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.
- When 65536 or a larger value is set for the path cost, you cannot change the
parameter to
short.