6-7
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 6 Configuring EtherChannel
Configuring EtherChannel
The
set channel vlancost
command creates a “set spantree portvlancost” entry to the configuration file
for each port in the channel. Once you have entered the
set channel vlancost
command, you must enter
the
set spantree portvlancost
command for at least one port in the channel, specifying the VLAN or
VLANs that you want associated with each port. The following examples show what occurs when each
command is entered:
Console> (enable)
set channel vlancost 856 10
Port(s) 3/47-48 vlan cost are updated to 16.
Channel 856 vlancost is set to 10.
The following commands are added to the configuration file:
•
set spantree portvlancost 3/47 cost 16
•
set spantree portvlancost 3/48 cost 16
Now you have to add the desired VLANs to the above created commands by entering the following:
Console> (enable)
set spantree portvlancost 3/47 cost 16 1-1005
Port 3/47 VLANs 1025-4094 have path cost 19.
Port 3/47 VLANs 1-1005 have path cost 16.
Port 3/48 VLANs 1-1005 have path cost 16.
To set the EtherChannel VLAN cost, perform this task in privileged mode:
This example shows how to set the EtherChannel VLAN cost for channel ID 856:
Console> (enable)
show channel group 22
Admin Port Status Channel Channel
group Mode id
----- ----- ---------- --------- --------
22 1/1 notconnect on 856
22 1/2 connected on 856
Admin Port Device-ID Port-ID Platform
group
----- ----- ------------------------------- ------------------------- ----------
22 1/1
22 1/2 066510644(cat26-lnf(NET25)) 2/1 WS-C6009
Console> (enable)
Console> (enable)
set channel vlancost 856 10
Port(s) 3/47-48 vlan cost are updated to 16.
Channel 856 vlancost is set to 10.
Console> (enable)
set spantree portvlancost 3/47 cost 16 1-1005
Port 3/47 VLANs 1025-4094 have path cost 19.
Port 3/47 VLANs 1-1005 have path cost 16.
Port 3/48 VLANs 1-1005 have path cost 16.
Console> (enable)
Task
Command
Step 1
Use the administrative group number to display
the EtherChannel ID.
show channel group
admin_group
Step 2
Use the EtherChannel ID to set the EtherChannel
VLAN cost.
set channel vlancost
channel_id
cost
Step 3
Configure the port cost for the desired VLANs on
each port.
set spantree portvlancost
{
mod/port
}
[
cost
cost
]
[
vlan_list
]