2-1005
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco 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 16-bit-based values.
Command Modes Global configuration mode
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
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..
Command Description
show spanning-tree Displays spanning-tree state information.