8-62 C122-E003-02EN
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)
• Resets the path cost setting to the default value
(2) Options
z <cost>
Specifies the path cost value. The setting range is 0 to 65535.
z auto (default)
Automatically sets the path cost value.
The following table lists the default path costs when [Auto] is specified.
(3) Command mode
Interface
(4) See also
spanning-tree
spanning-tree port-priority
(5) Examples
• Sets 250 as the path cost for an interface
spanning-tree cost {<cost> | auto}
no spanning-tree cost
Data rate Default path cost
10Mbps 100
100Mbps 19
1000Mbps 4
10Gbps 2