Tune and Optimize EtherChannel Operations
Tune and Optimize EtherChannel Operations
PNETLAB Store
PNETLab.com
Topology:
https://user.pnetlab.com/store/labs/detail?id=16038648036982
Objectives:
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Tune LACP-based EtherChannels
Part 3: Explore EtherChannel Load Balancing
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Background / Scenario
The open standard Link Aggregation Control Protocol (LACP) is extremely flexible and offers robust options
for maintaining an EtherChannel bundle. By default, LACP allows up to 8 active members and as many as
8 standby members in a single bundle. The minimum and maximum number of links can be controlled
through configuration. In addition, the timing of LACP packets can be modified.
Both LACP and Cisco’s Port Aggregation Protocol (PAgP) support a wide variety of load-balancing
algorithms, which help to maintain even distribution of the traffic load across an EtherChannel bundle.
In this lab, you will explore the tuning options for LACP, as well as the load-balancing options for
EtherChannel in general.
Note: This lab is an exercise in tuning and optimizing EtherChannel and does not necessarily reflect
networking best practices.
Note: The switches used with CCNP hands-on labs are Cisco 3650 with Cisco IOS XE release 16.9.4
(universalk9 image). Other routers and Cisco IOS versions can be used. Depending on the model and
Cisco IOS version, the commands available and the output produced might vary from what is shown in the
labs.
Note: Ensure that the switches have been erased and have no startup configurations. If you are unsure
contact your instructor.
Required Resources
2 Switches (Cisco 3650 with Cisco IOS XE release 16.9.4 universal image or comparable)
1 PC (Windows with a terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
Switch D1
hostname D1
banner motd # D1, Tuning EtherChannel #
spanning-tree mode rapid-pvst
line con 0
exec-timeout 0 0
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
logging synchronous
exit
!
interface range e0/0-3
switchport trunk encapsulation dot1q
switchport mode trunk
no shutdown
exit
Switch D2
hostname D2
banner motd # D2, Tuning EtherChannel #
spanning-tree mode rapid-pvst
line con 0
exec-timeout 0 0
logging synchronous
exit
!
interface range e0/0-3
switchport trunk encapsulation dot1q
switchport mode trunk
no shutdown
exit
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Use the show lacp sys-id privileged EXEC command to see what the sys-id value is for D1 and D2.
Based on the output shown below, we can deduce that D1 would be the bundle master if all default
values remained unchanged.
Open configuration window
On D2, modify the lacp sys-id by changing the system priority. Use the lacp system-priority value global
configuration command to set the value to 1, and then verify that the value has been changed.
D2# config t
Enter configuration commands, one per line. End with CNTL/Z.
D2(config)# lacp system-priority 1
D2(config)# exit
D2# config t
D2(config-if-range)# shutdown
Configure the connections between D1 and D2 into a single LACP EtherChannel bundle. Use Channel
Group number 12 and the Active mode. Configure the interfaces for LACP Fast.
Issue the no shutdown command for the interfaces connecting D1 and D2.
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com
D2(config-if-range)# no shutdown
D2(config-if-range)# exit
On D1 and D2, configure the port-channel 12 interface with a LACP minimum bundle size of 2 interfaces,
and the maximum bundle size of 3 interfaces.
Note: The maximum value is only required on the master switch. Configuring it on both sides of the
bundle is a best practice that may help with troubleshooting.
D2(config)# interface port-channel 12
D2(config-if)# lacp max-bundle 3
D2(config-if)# end
Verify that the EtherChannel bundle has formed and take note of the ports that are included versus the port
that is in hot standby mode.
Et0/3(w)
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Verify the mode, state and rate of LACPDU being sent for port members.Close configuration window
Channel group 12
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number
State
Et0/0 SA bndl 32768 0xC 0xC 0x1 0x3D
Et0/1 SA bndl 32768 0xC 0xC 0x2 0x3D
Et0/2 SA bndl 32768 0xC 0xC 0x3 0x3D
Et0/3 SA bndl 32768 0xC 0xC 0x4 0xD