Configuring Etherchannels: Understanding How Etherchannels Work
Configuring Etherchannels: Understanding How Etherchannels Work
Configuring Etherchannels: Understanding How Etherchannels Work
13
Configuring EtherChannels
This chapter describes how to configure EtherChannels on the Catalyst 6500 series switch Layer 2 or Layer 3 LAN ports.
Note
For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 6500 Series Switch Cisco IOS Command Reference publication. The commands in the following sections can be used on all LAN ports in Catalyst 6500 series switches, including the ports on the supervisor engine and a redundant supervisor engine. Release 12.1(13)E and later releases support the IEEE 802.3ad Link Aggregation Control Protocol (LACP). The WS-X6548-GE-TX and WS-X6548V-GE-TX fabric-enabled switching modules do not support more than 1 Gbps of traffic per EtherChannel, except when the switch is operating in truncated mode. The WS-X6148-GE-TX and WS-X6148V-GE-TX switching modules do not support more than 1 Gbps of traffic per EtherChannel.
Understanding How EtherChannels Work, page 13-1 EtherChannel Feature Configuration Guidelines and Restrictions, page 13-5 Configuring EtherChannels, page 13-6
EtherChannel Feature Overview, page 13-2 Understanding How EtherChannels Are Configured, page 13-2 Understanding Port Channel Interfaces, page 13-5 Understanding Load Balancing, page 13-5
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E 78-14099-04
13-1
Configuring EtherChannels
Note
The network device to which a Catalyst 6500 series switch is connected may impose its own limits on the number of ports in an EtherChannel. If a segment within an EtherChannel fails, traffic previously carried over the failed link switches to the remaining segments within the EtherChannel. When a failure occurs, the EtherChannel feature sends a trap that identifies the switch, the EtherChannel, and the failed link. Inbound broadcast and multicast packets on one segment in an EtherChannel are blocked from returning on any other segment of the EtherChannel.
EtherChannel Configuration Overview, page 13-2 Understanding Manual EtherChannel Configuration, page 13-3 Understanding PAgP EtherChannel Configuration, page 13-3 Understanding IEEE 802.3ad LACP EtherChannel Configuration, page 13-3
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E
13-2
78-14099-04
Chapter 13
Mode on
Description Mode that forces the LAN port to channel unconditionally. In the on mode, a usable EtherChannel exists only when a LAN port group in the on mode is connected to another LAN port group in the on mode. Because ports configured in the on mode do not negotiate, there is no negotiation traffic between the ports. You cannot configure the on mode with an EtherChannel protocol. PAgP mode that places a LAN port into a passive negotiating state, in which the port responds to PAgP packets it receives but does not initiate PAgP negotiation. (Default) PAgP mode that places a LAN port into an active negotiating state, in which the port initiates negotiations with other LAN ports by sending PAgP packets. LACP mode that places a port into a passive negotiating state, in which the port responds to LACP packets it receives but does not initiate LACP negotiation. (Default) LACP mode that places a port into an active negotiating state, in which the port initiates negotiations with other ports by sending LACP packets.
A LAN port in desirable mode can form an EtherChannel successfully with another LAN port that is in desirable mode. A LAN port in desirable mode can form an EtherChannel with another LAN port in auto mode. A LAN port in auto mode cannot form an EtherChannel with another LAN port that is also in auto mode, because neither port will initiate negotiation.
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E 78-14099-04
13-3
Configuring EtherChannels
The protocol learns the capabilities of LAN port groups dynamically and informs the other LAN ports. Once LACP identifies correctly matched Ethernet links, it facilitates grouping the links into an EtherChannel. The EtherChannel is then added to the spanning tree as a single bridge port. Both the passive and active modes allow LACP to negotiate between LAN ports to determine if they can form an EtherChannel, based on criteria such as port speed and trunking state. Layer 2 EtherChannels also use VLAN numbers. LAN ports can form an EtherChannel when they are in different LACP modes as long as the modes are compatible. For example:
A LAN port in active mode can form an EtherChannel successfully with another LAN port that is in active mode. A LAN port in active mode can form an EtherChannel with another LAN port in passive mode. A LAN port in passive mode cannot form an EtherChannel with another LAN port that is also in passive mode, because neither port will initiate negotiation. LACP system priorityYou must configure an LACP system priority on each switch running LACP. The system priority can be configured automatically or through the CLI (see the Configuring the LACP System Priority and System ID section on page 13-10). LACP uses the system priority with the switch MAC address to form the system ID and also during negotiation with other systems.
Note
The LACP system ID is the combination of the LACP system priority value and the MAC address of the switch.
LACP port priorityYou must configure an LACP port priority on each port configured to use LACP. The port priority can be configured automatically or through the CLI (see the Configuring Channel Groups section on page 13-8). LACP uses the port priority with the port number to form the port identifier. LACP uses the port priority to decide which ports should be put in standby mode when there is a hardware limitation that prevents all compatible ports from aggregating. LACP administrative keyLACP automatically configures an administrative key value equal to the channel group identification number on each port configured to use LACP. The administrative key defines the ability of a port to aggregate with other ports. A ports ability to aggregate with other ports is determined by these factors:
Port physical characteristics, such as data rate, duplex capability, and point-to-point or shared
medium
Configuration restrictions that you establish
On ports configured to use LACP, LACP tries to configure the maximum number of compatible ports in an EtherChannel, up to the maximum allowed by the hardware (eight ports). If LACP cannot aggregate all the ports that are compatible (for example, the remote system might have more restrictive hardware limitations), then all the ports that cannot be actively included in the channel are put in hot standby state and are used only if one of the channeled ports fails. You can configure an additional 8 standby ports (total of 16 ports associated with the EtherChannel).
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E
13-4
78-14099-04
Chapter 13
Note
Releases 12.1(4)E1, 12.1(3a)E4, and 12.1(3a)E3 support a maximum of 64 port channel interfaces, numbered from 1 to 64. Releases 12.1(2)E and earlier support a maximum of 256 port channel interfaces, numbered from 1 to 256. The configuration that you apply to the port channel interface affects all LAN ports assigned to the port channel interface. After you configure an EtherChannel, the configuration that you apply to the port channel interface affects the EtherChannel; the configuration that you apply to the LAN ports affects only the LAN port where you apply the configuration. To change the parameters of all ports in an EtherChannel, apply the configuration commands to the port channel interface, for example, Spanning Tree Protocol (STP) commands or commands to configure a Layer 2 EtherChannel as a trunk.
All Ethernet LAN ports on all modules, including those on a redundant supervisor engine, support EtherChannels (maximum of eight LAN ports) with no requirement that the LAN ports be physically contiguous or on the same module. Configure all LAN ports in an EtherChannel to use the same EtherChannel protocol; you cannot run two EtherChannel protocols in one EtherChannel. Configure all LAN ports in an EtherChannel to operate at the same speed and in the same duplex mode. LACP does not support half-duplex. Half-duplex ports in an LACP EtherChannel are put in the suspended state.
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E 78-14099-04
13-5
Configuring EtherChannels
Enable all LAN ports in an EtherChannel. If you shut down a LAN port in an EtherChannel, it is treated as a link failure and its traffic is transferred to one of the remaining ports in the EtherChannel. An EtherChannel will not form if one of the LAN ports is a Switched Port Analyzer (SPAN) destination port. For Layer 3 EtherChannels, assign Layer 3 addresses to the port channel logical interface, not to the LAN ports in the channel. For Layer 2 EtherChannels:
Assign all LAN ports in the EtherChannel to the same VLAN or configure them as trunks. If you configure an EtherChannel from trunking LAN ports, verify that the trunking mode is the
same on all the trunks. LAN ports in an EtherChannel with different trunk modes can operate unpredictably.
An EtherChannel supports the same allowed range of VLANs on all the LAN ports in a trunking
Layer 2 EtherChannel. If the allowed range of VLANs is not the same, the LAN ports do not form an EtherChannel.
LAN ports with different STP port path costs can form an EtherChannel as long they are
compatibly configured with each other. If you set different STP port path costs, the LAN ports are not incompatible for the formation of an EtherChannel.
An EtherChannel will not form if protocol filtering is set differently on the LAN ports.
After you configure an EtherChannel, the configuration that you apply to the port channel interface affects the EtherChannel. The configuration that you apply to the LAN ports affects only the LAN port where you apply the configuration. With Release 12.1(12c)E1 and later releases, when QoS is enabled, enter the no mls qos channel-consistency port-channel interface command to support EtherChannels that have ports with and without strict-priority queues. With Release 12.1(12c)E1 and later releases, to disable QoS capability checks or QoS port attribute checks in cross-module EtherChannels , enter the no mls qos channel-consistency command.
Configuring EtherChannels
These sections describe how to configure EtherChannels:
Configuring Port Channel Logical Interfaces for Layer 3 EtherChannels, page 13-7 Configuring Channel Groups, page 13-8 Configuring EtherChannel Load Balancing, page 13-11 Make sure that the LAN ports are configured correctly (see the EtherChannel Feature Configuration Guidelines and Restrictions section on page 13-5). With Release 12.1(11b)E and later, when you are in configuration mode you can enter EXEC mode commands by entering the do keyword before the EXEC mode command.
Note
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E
13-6
78-14099-04
Chapter 13
When configuring Layer 2 EtherChannels, you cannot put Layer 2 LAN ports into manually created port channel logical interfaces. If you are configuring a Layer 2 EtherChannel, do not perform the procedures in this section (see the Configuring Channel Groups section on page 13-8). When configuring Layer 3 EtherChannels, you must manually create the port channel logical interface as described in this section, and then put the Layer 3 LAN ports into the channel group (see the Configuring Channel Groups section on page 13-8). To move an IP address from a Layer 3 LAN port to an EtherChannel, you must delete the IP address from the Layer 3 LAN port before configuring it on the port channel logical interface.
To create a port channel interface for a Layer 3 EtherChannel, perform this task: Command
Step 1
Router(config)# interface port-channel number Router(config)# no interface port-channel number
Purpose Creates the port channel interface. Deletes the port channel interface. Assigns an IP address and subnet mask to the EtherChannel. Exits configuration mode. Verifies the configuration.
When creating the port channel interface, the group number can be one of the following:
Release 12.1(5)E and later1 through 256, up to a maximum of 64 port channel interfaces Releases 12.1(4)E1, 12.1(3a)E4, and 12.1(3a)E31 through 64 Release 12.1(2)E and earlier1 through 256
This example shows how to verify the configuration of port channel interface 1:
Router# show running-config interface port-channel 1 Building configuration... Current configuration: ! interface Port-channel1 ip address 172.32.52.10 255.255.255.0 no ip directed-broadcast end Router#
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E 78-14099-04
13-7
Configuring EtherChannels
When configuring Layer 3 EtherChannels, you must manually create the port channel logical interface first (see the Configuring Port Channel Logical Interfaces for Layer 3 EtherChannels section on page 13-7), and then put the Layer 3 LAN ports into the channel group as described in this section. When configuring Layer 2 EtherChannels, configure the LAN ports with the channel-group command as described in this section, which automatically creates the port channel logical interface. You cannot put Layer 2 LAN ports into a manually created port channel interface. For Cisco IOS to create port channel interfaces for Layer 2 EtherChannels, the Layer 2 LAN ports must be connected and functioning.
To configure channel groups, perform this task for each LAN port: Command
Step 1 Step 2 Step 3
Router(config)# interface type
1
Purpose
slot/port
Selects a LAN port to configure. Ensures that there is no IP address assigned to the LAN port. (Optional) On the selected LAN port, restricts the channel-group command to the EtherChannel protocol configured with the channel-protocol command. Removes the restriction. Configures the LAN port in a port channel and specifies the mode (see Table 13-1 on page 13-3). PAgP supports only the auto and desirable modes. LACP supports only the active and passive modes. Removes the LAN port from the channel group. (Optional for LACP) Valid values are 1 through 65535. Higher numbers have lower priority. The default is 32768. Reverts to the default. Exits configuration mode.
1
Router(config-if)# no ip address
Router(config-if)# no channel-protocol
Step 4
Router(config-if)# no channel-group
Step 5
Step 6 Step 7
Router(config-if)# end Router# show running-config interface type slot/port Router# show interfaces type1 slot/port etherchannel 1.
This example shows how to configure Fast Ethernet ports 5/6 and 5/7 into port channel 2 with PAgP mode desirable:
Router# configure terminal Router(config)# interface range fastethernet 5/6 -7 Router(config-if)# channel-group 2 mode desirable Router(config-if)# end
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E
13-8
78-14099-04
Chapter 13
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:
Router# show running-config interface port-channel 2 Building configuration... Current configuration: ! interface Port-channel2 no ip address switchport switchport access vlan 10 switchport mode access end Router#
This example shows how to verify the configuration of Fast Ethernet port 5/6:
Router# show running-config interface fastethernet 5/6 Building configuration... Current configuration: ! interface FastEthernet5/6 no ip address switchport switchport access vlan 10 switchport mode access channel-group 2 mode desirable end Router# show interfaces fastethernet 5/6 etherchannel Port state = Down Not-in-Bndl Channel group = 12 Mode = Desirable-Sl Gcchange = 0 Port-channel = null GC = 0x00000000 Pseudo port-channel = Po1 2 Port index = 0 Load = 0x00 Protocol = PAgP Flags: S A d Timers: H S Device is sending Slow hello. Device is in Auto mode. PAgP is down. Hello timer is running. Switching timer is running. C - Device is in Consistent state. P - Device learns on physical port. Q - Quit timer is running. I - Interface timer is running.
Local information: Port Fa5/2 Flags State d U1/S1 Timers Hello Partner PAgP Interval Count Priority 1s 0 128 Learning Group Method Ifindex Any 0
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E 78-14099-04
13-9
Configuring EtherChannels
This example shows how to verify the configuration of port channel interface 2 after the LAN ports have been configured:
Router# show etherchannel 12 port-channel Port-channels in the group: ---------------------Port-channel: Po12 -----------Age of the Port-channel = 04d:18h:58m:50s Logical slot/port = 14/1 Number of ports = 0 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Ag-Not-Inuse Protocol = PAgP Router#
Purpose (Optional for LACP) Valid values are 1 through 65535. Higher numbers have lower priority. The default is 32768. Reverts to the default. Exits configuration mode. Verifies the configuration.
Step 2 Step 3
The system priority is displayed first, followed by the MAC address of the switch.
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E
13-10
78-14099-04
Chapter 13
Reverts to default EtherChannel load balancing. Exits configuration mode. Verifies the configuration.
Step 2 Step 3
With a PFC2:
src-portSource Layer 4 port dst-portDestination Layer 4 port src-dst-portSource and destination Layer 4 port
This example shows how to configure EtherChannel to use source and destination IP addresses:
Router# configure terminal Router(config)# port-channel load-balance src-dst-ip Router(config)# end Router(config)#
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E 78-14099-04
13-11
Configuring EtherChannels
Catalyst 6500 Series Switch Cisco IOS Software Configuration GuideRelease 12.1 E
13-12
78-14099-04