USD ($)
$
United States Dollar
India Rupee

Cisco Port Channel Configuration: Steps

Created by Deepak Sharma in CCNA 8 Jan 2024
Share

Chapter 2.3

Chapter 2.5

2.4 Configure and verify (Layer 2/Layer 3) EtherChannel (LACP)

EtherChannel is also known as Link Aggregation. It is a technique used to combine multiple physical Ethernet links into a single logical link. This logical link provides higher bandwidth, increased redundancy, and improved load balancing between devices. EtherChannel can operate at either Layer 2 or Layer 3 of the OSI model, and the specific implementation depends on whether it is configured as Layer 2 or Layer 3 EtherChannel. Let's have a look port channels in more detail

Layer 2 EtherChannel:

In Layer 2 EtherChannel, the multiple physical links are bundled together to form a single logical link. The bundling is done at Layer 2, meaning the Ethernet frames are transmitted without any modification to the Layer 2 headers. The primary purpose of Layer 2 EtherChannel is to increase the available bandwidth and provide link redundancy. It is commonly used in switch-to-switch or switch-to-server connections.

The Link Aggregation Control Protocol (LACP) is a protocol used to negotiate and manage Layer 2 EtherChannels. LACP works in a client-server architecture mode. The LACP server sends LACP frames to the clients, allowing them to exchange information and agree on the formation of an EtherChannel. LACP helps ensure that the configuration on both ends of the link is compatible and reduces the chances of misconfigurations or loops in the network.

Layer 3 EtherChannel:

Layer 3 EtherChannel, also known as routed EtherChannel, operates at Layer 3 of the OSI model. It allows the bundling of multiple Layer 3 interfaces, typically routed interfaces, into a single logical interface. Layer 3 EtherChannel is primarily used for load balancing and redundancy in routed networks. It allows for the distribution of traffic across the bundled links based on various load-balancing algorithms.

LACP can also be used with Layer 3 EtherChannel to negotiate and manage the formation of the logical link. LACP frames are exchanged between the devices participating in the Layer 3 EtherChannel to establish the link and ensure compatibility.

In summary, Layer 2 EtherChannel combines multiple physical Ethernet links into a single logical link at Layer 2, providing increased bandwidth and redundancy. LACP is used for negotiation and management of Layer 2 EtherChannels. Layer 3 EtherChannel performs a similar function but operates at Layer 3, bundling multiple Layer 3 interfaces for load balancing and redundancy. LACP can be used with Layer 3 EtherChannel as well.

Topology Diagram

banner image

Tasks

● Note: The enable password on all devices is "CISCO"

● Configure an Etherchannel that bundles the two links connecting SW03 to SW04.

 ✓ This Etherchannel should be dynamically formed using an IEEE standard protocol.

 ✓ SW03 should initiate forming the Etherchannel.

● Configure an Etherchannel that bundles the two links connecting SW02 to SW04.

 ✓ This Etherchannel should be dynamically formed using a Cisco proprietary protocol.

 ✓ SW04 should initiate forming the Etherchannel.

● On SW04 issue the command, "show etherchannel summary" to confirm that both Etherchannels are operational.

● Configure layer 3 portchannel between link connecting SW03 and SW02

 ✓ SW03 should initiate forming the Etherchannel using LACP

 ✓ Configure IP address 1.1.1.3/24 and 1.1.1.2/24 on layer 3 portchannels on SW03 and SW02 respectively.


Configuration and Verifications

Between SW03 and SW04, LACP etherchannel needs to be configured because it is an IEEE standard protocol and SW03 should be "active" meaning it will initiate forming the etherchannel.

Note: Channel group number can be any number.

SW03:

!

configure terminal

!

interface range E0/2, E1/1

 channel-group 1 mode active

!

end

!

write

!

banner image

SW04:

!

configure terminal

!

interface range E0/2, E1/1

 channel-group 1 mode passive

!

end

!

write

!

banner image

Between SW03 and SW04, PAgP etherchannel needs to be configured because it is a Cisco proprietary protocol (depreciated) and SW04 should be "desirable" meaning it will initiate forming the etherchannel.

Note: Channel group number can be any number (except 1 on SW04 as it was already being used in the etherchannel with SW03).

SW02:

!

configure terminal

!

interface range E1/0, E0/3

 channel-group 2 mode desirable

!

end

!

write

!

banner image

SW04:

!

configure terminal

!

interface range E1/0, E0/0

 channel-group 2 mode auto

!

end

!

write

!

banner image

Now verify on SW04 and confirm the above etherchannels or portchannels i.e. Po1 and Po2 are formed and operational as expected with protocols LACP and PAgP respectively.

SW04:

banner image

In order to configure layer 3 portchannels, the underlying port should be first converted to layer 3 ports using command "no switchport" (by default all switchports are layer 2 ports). IP address can also be assigned on layer 3 portchannels.

Note: In our case we have only one port in the portchannel, however you can have up to 8 ports bundled in a portchannel.

SW02:

!

configure terminal

!

interface E0/0

 no switchport

 channel-group 3 mode passive

!

interface po3

 ip address 1.1.1.2 255.255.255.0

!

end

!

write

!

banner image

SW03:

!

configure terminal

!

interface E0/1

 no switchport

 channel-group 3 mode active

!

interface po3

 ip address 1.1.1.3 255.255.255.0

!

end

!

write

!

banner image

Verify and confirm the layer 3 portchannel configured on SW03. IP address is also assigned to Po3 and the other end IP is reachable.

SW03:

banner image

 

Chapter 2.3

Chapter 2.5

Deepak Sharma

He is a senior solution network architect and currently working with one of the largest financial company. He has an impressive academic and training background. He has completed his B.Tech and MBA, which makes him both technically and managerial proficient. He has also completed more than 450 online and offline training courses, both in India and ...

More... | Author`s Bog | Book a Meeting

Comments (0)

Deepak Sharma

Deepak Sharma

Senior Instructor (Part Time) at UniNets Instructor role
★★★★★ 4.97
Faithful User
Expert Vendor
Golden Classes
King Seller
Fantastic Support
Loyal Writer

Upcoming batches

+91 9818239009

Enquire Now

Captcha
Share to your friends

Share

Share this post with others

Contact learning advisor

Captcha image