Ether Channel
Ether Channel
In this article we will describe how to configure both LACP and PAgP EtherChannels on Cisco switches.
An EtherChannel is a Link Aggregation technology whereby two switches are connected together with
multiple interfaces which are bundled together to form a single logical interface (“Port-Channel”)
therefore increasing bandwidth between the switches.
EtherChannel Use-Case
If we connect the two switches together with a single 1Gbps interface, then it could potentially be a
bottleneck to traffic from users to servers (especially for high-volume applications).
With Etherchannel, we can bundle together up to 8 interfaces to form a single logical link (Port-Channel)
and traffic is load-balanced between all interfaces.
In our example above, 4x1Gbps interfaces were bundled together thus forming a 4Gbps pipe from users
to servers. This increases bandwidth but also enhances redundancy between the switches.
NOTE: If you connect the interfaces as shown above without configuring EtherChannel, then a Spanning-
tree loop will be detected and 3 out of 4 links will be blocked by Spanning-Tree Protocol. By configuring
Etherchannel, the bundle is considered as a single logical interface and there are no spanning tree loops.
EtherChannel Protocols :There are two Etherchannel protocols. These protocols manage the
channel establishment between the switches:
The first one (LACP) is preferred as it’s supported by many vendors and it’s a better protocol.
EtherChannel Modes
Each protocol listed above has three modes of operation which dictate if the switch will actively seek to
form an Etherchannel link or will wait for the other end to form the link.
Let’s see a useful table below showing whether an Etherchannel will establish or not depending on each
switch mode:
EtherChannel Modes
Auto PAgP Sets the interface to respond to PAgP negotiation packets, but
the interface will start negotiations on its own.
LACP Protocol
ON ON YES
ON ACTIVE NO
PASSIVE/ON PASSIVE NO
PAgP Protocol
Switch 1 Mode Switch 2 Mode Channel Established?
ON ON YES
ON DESIRABLE NO
AUTO / ON AUTO NO
EtherChannel Configuration
Assume physical interfaces Gi0/0 up to Gi0/3 will be used to form an Etherchannel. Moreover, it’s better
to configure the resulting Port-Channel logical interface as Trunk in order to allow VLANs to pass
between the switches.
LACP Configuration
The first switch SW1 will be Active Mode and SW2 will be in Passive Mode.
PAgP Configuration
The first switch SW1 will be in Desirable Mode and SW2 will be in Auto Mode.
Here are some useful commands to verify correct operation and for troubleshooting purposes:
Layer 3 Etherchannel on Cisco IOS Switch :In a previous tutorial I explained how Etherchannels work
and how to configure them, but I didn’t write about layer 3 Etherchannels before. In this tutorial, I’ll
show you how to configure them.
A layer 3 etherchannel is similar to an interface on a router. The switch won’t “switch” traffic on this
interface but route it. Because it’s a layer 3 interface, we configure an IP address on it.
I’ll be using two switches for this:
Before we configure the port channel settings you need to make sure that all interfaces have the exact
same configuration. Once you use the channel-group command, the port-channel interface will
automatically inherit all settings from your physical interface. If you forget to run the no
switchport command on an interface, your etherchannel will be layer 2 instead of layer 3!
This creates our Etherchannel, we can verify our work like this:
Above you can see that our port-channel 12 interface is layer 3 and it’s operational. Just like any other
layer 3 interface we can configure an IP address on this port-channel interface:
SW1(config)#interface port-channel 12
SW1(config-if)#ip address 192.168.12.1 255.255.255.0
SW2(config)#interface port-channel 12
SW2(config-if)#ip address 192.168.12.2 255.255.255.0