Specifications

2-821
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
spanning-tree pathcost method
spanning-tree pat hcost 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 configura tion mode
Usage Guidelines This command applies to all the spanning-tree instances on the switch.
The long path cost calculation method use s all the 32 bits for path cost calcul ation 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.
Command Description
show spanning-tree Displays spanning-tree state information.