GSWB

CHAPTER 8 CLI Operations

The calculated value of the Master's link speed - 1 is set in the settings for a port- channel port configured with multiple links.

(1)Synopsis

Calculates path costs based on data rates automatically by default (automatically recalculates path costs following any change in data rates)

spanning-tree cost {<cost> auto}

Resets the path cost setting to the default value no spanning-tree cost

(2)Options

z<cost>

Specifies the path cost value. The setting range is 0 to 65535.

zauto (default)

Automatically sets the path cost value.

The following table lists the default path costs when [Auto] is specified.

Data rate

Default path cost

10Mbps

100

100Mbps

19

1000Mbps

4

10Gbps

2

(3)Command mode

Interface

(4)See also spanning-tree

spanning-tree port-priority

(5)Examples

Sets 250 as the path cost for an interface

8-62

C122-E003-02EN