3.12.21. spanning-tree pathcost method

Syntax

spanning-tree pathcost method (long|short)

Parameter


long The range for the path cost is from 1 to 200000000.

short The range for the path cost is from 1 to 65535.


Default

The default path cost method is long.

Mode

Global Configuration

Usage

To set the spanning tree path cost method, use the command spanning-tree pathcost method in the Global Configuration mode. If the short method is specified, the switch calculates the path cost in the range 1 throuth 65535; Otherwise, it calculates the path cost in the range 1 to 200000000.

Example

The following example modifies path cost method to short.

Switch(config)# spanning-tree pathcost method short