2-439
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco IOS Commands for the Catalyst 4500 Series Switches
spanning-tree pathcost method
spanning-tree pathcost method
To set the path cost calculation method, use the spanning-tree pathcost method command. To revert to
the default setting, use the no form of this command.
spanning-tree pathcost method {long | short}
no spanning-tree pathcost method
Syntax Description
Defaults Port path cost has 32-bit-based values.
Command Modes Global configuration
Command History
Usage Guidelines This command applies to all the spanning tree instances on the switch.
The long path cost calculation method uses all the 32 bits for path cost calculation and yields values in
the range of 1 through 200,000,000.
The short path cost calculation method (16 bits) yields values in the range of 1 through 65,535.
Examples This example shows how to set the path cost calculation method to long:
Switch(config# ) spanning-tree pathcost method long
Switch(config# )
This example shows how to set the path cost calculation method to short:
Switch(config# ) spanning-tree pathcost method short
Switch(config# )
Related Commands show spanning-tree
long Specifies 32-bit-based values for port path costs.
short Specifies 16-bit-based values for port path costs.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.