port-channel path-cost

Sets the port channel path cost behavior.

Syntax

port-channel path-cost [ custom | standard ]

Command Default

Path cost is standard.

Parameters

custom
Specifies to use the custom behavior, which sets the path cost changes according to the port-channel‘s bandwidth.
standard
Specifies to use the standard behavior, which sets that the path cost does not change according to port-channel‘s bandwidth.

Modes

Spanning tree configuration mode

Examples

To set the behavior for the path cost to custom:

device# configure terminal
device(config)# protocol spanning-tree stp
device(conf-stp)# port-channel path-cost custom

device# configure terminal
device(config)# protocol spanning-tree rstp
device(conf-rstp)# port-channel path-cost custom

device# configure terminal
device(config)# protocol spanning-tree mstp
device(conf-mstp)# port-channel path-cost custom

device# configure terminal
device(config)# protocol spanning-tree pvst
device(conf-pvst)# port-channel path-cost custom

device# configure terminal
device(config)# protocol spanning-tree rpvst
device(conf-rpvst)# port-channel path-cost custom

To set the behavior for the path cost to standard:

device# configure terminal
device(config)# protocol spanning-tree stp
device(conf-stp)# port-channel path-cost standard

device# configure terminal
device(config)# protocol spanning-tree rstp
device(conf-rstp)# port-channel path-cost standard

device# configure terminal
device(config)# protocol spanning-tree mstp
device(conf-mstp)# port-channel path-cost standard

device# configure terminal
device(config)# protocol spanning-tree pvst
device(conf-pvst)# port-channel path-cost standard

device# configure terminal
device(config)# protocol spanning-tree rpvst
device(conf-rpvst)# port-channel path-cost standard