Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
2-73
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
spanning-tree pathcost method
spanning-tree pathcost method
To set the default path-cost calculation method, use the spanning-tree pathcost method command. To
return to the default settings, use the no form of this command.
spanning-tree pathcost method {long | short}
no spanning-tree pathcost method
Syntax Description
Command Default Short.
Command Modes Configuration mode
Command History
Usage Guidelines The long path-cost calculation method uses all 32 bits for path-cost calculations and yields valued in the
range of 2 through 2,00,000,000.
The short path-cost calculation method (16 bits) yields values in the range of 1 through 65535.
Note This command applies only to the Rapid PVST+ spanning tree mode, which is the default mode. When
you are using MST spanning tree mode, the switch uses only the long method for calculating path cost;
this is not user-configurable for MST.
Examples This example shows how to set the default pathcost method to long:
switch(config)# spanning-tree pathcost method long
Related Commands
long Specifies the 32-bit based values for port path costs.
short Specifies the 16-bit based values for port path costs.
Release Modification
4.0(0)N1(1a) This command was introduced.
Command Description
show spanning-tree
summary
Displays information about the spanning tree state.