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

long
Specifies the 32-bit based values for port path costs.
short
Specifies the 16-bit based values for port path costs.

Command Default

Short

Command Modes

Global configuration mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

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 per VLAN Spanning Tree Plus (Rapid PVST+) spanning tree mode, which is the default mode. When you are using Multiple Spanning Tree (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

Command
Description
show spanning-tree summary
Displays information about the spanning tree state.