2-559
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set spantree channelcost
set spantree channelcost
To set the channel path cost and to automatically adjust the channel port costs, use the set spantree
channelcost command.
set spantree channelcost {channel_id | all} cost
Syntax Description
Defaults The port cost is updated automatically based on the current port costs of the channeling ports.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines You can use this command when your switch is in Link Aggregation Control Protocol (LACP) channel
mode or in PAgP channel mode.
For differences between PAgP and LACP, refer to the “Guidelines for Port Configuration” section of the
“Configuring EtherChannel” chapter of the Catalyst 6500 Series Switch Software Configuration Guide.
Examples This example shows how to set the channel 768 path cost t o 12.
Console> (enable) set spantree channelcost 768 12
Port(s) 1/1-2 port path cost are updated to 19.
Channel 768 cost is set to 12.
Warning: channel cost may not be applicable if channel is broken.
Console> (enable)
This example shows how to set all channel path costs to 15:
Console> (enable) set spantree channelcost all 15
Port(s) 1/1-2 port path cost are updated to 24.
Channel 768 cost is set to 15.
Port(s) 4/3-4 cost is set to 15.
channel 769 cost is set to 15.
Port(s) 4/7-8 cost is set to 15.
channel 770 cost is set to 15.
Warning: channel cost may not be applicable if channel is broken.
Console> (enable)
channel_id Channel identification number.
all Configures all channels.
cost Channel port costs.