22-10
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 22 Configuring EtherChannel and Link State Tracking
Configuring EtherChannel
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SD) LACP Gi1/23(H) Gi1/24(H)
Switch#
Configuring Layer 2 EtherChannels
To configure Layer 2 EtherChannels, configure the Ethernet interfaces with the channel-group
command. This operation creates the port channel logical interface.
Note Cisco IOS software creates port channel interfaces for Layer 2 EtherChannels when you configure
Layer 2 Ethernet interfaces with the channel-group command.
To configure Layer 2 Ethernet interfaces as Layer 2 EtherChannels, perform this task for each interface:
This example shows how to configure Fast Ethernet interfaces 5/6 and 5/7 into port channel 2 with PAgP
mode desirable:
Switch# configure terminal
Switch(config)# interface range fastethernet 5/6 - 7 (Note: Space is mandatory.)
Switch(config-if-range)# channel-group 2 mode desirable
Switch(config-if-range)# end
Switch# end
Note See the “Configuring a Range of Interfaces” section on page 6-4 for information about the range
keyword.
This example shows how to verify the configuration of port channel interface 2:
Switch# show running-config interface port-channel 2
Building configuration...
Current configuration:
!
Command Purpose
Step 1 Switch(config)# interface {fastethernet | gigabitethernet
| tengigabitethernet} slot/port Selects a physical interface to configure.
Step 2 Switch(config-if)# channel-group port_channel_number mode
{active | on | auto | passive | desirable} Configures the interface in a port channel and
specifies the PAgP or LACP mode.
If you use PAgP, enter the keywords auto or
desirable.
If you use LACP, enter the keywords active or
passive.
Step 3 Switch(config-if)# end Exits configuration mode.
Step 4 Switch# show running-config interface {fastethernet |
gigabitethernet} slot/port
Switch# show interface {fastethernet | gigabitethernet |
tengigabitethernet} slot/port etherchannel
Verifies the configuration.