To configure LACP on a Cisco switch

 

Step 1 switch# configure terminal >>Enters global configuration mode.

Step 2 switch(config)# feature lacp >>Enables LACP on the switch.

Step 3 (Optional) switch(config)# show feature >>Displays enabled features


Switch(config)# interface eth1/29-32

Switch(config-if-range)# switchport

Switch(config-if-range)# channel-group 106 mode active

Switch(config-if-range)# exit

Switch(config)# interface port-channel 106

Switch(config-if)# no shutdown

Switch(config-if)# sw mode trunk

Switch(config-if)# sw trunk allowed vlan add 2801-2850

Switch(config-if)# sw trunk allowed vlan add 2351-2378

Switch(config-if)#

Switch(config-if)# port-channel load-balance ethernet source-des

source-dest-ip          source-dest-ip-only     source-dest-port

Switch(config-if)# port-channel load-balance ethernet source-dest-mac

Switch(config)#

Switch(config)#

Switch(config)# interface port-channel 106

Switch(config-if)# no negotiate auto

Switch(config-if)#

Switch# copy run sta

[########################################] 100%

Copy complete, now saving to disk (please wait)...

















To configure LACP on a Cisco switch, you need to first create a port-channel interface, then specify the LACP mode, and finally assign the physical interfaces to the port-channel. 
The main commands for LACP configuration are interface port-channelchannel-group, and lacpYou'll also need to ensure that the LACP rate and system priority are properly configured. 

1. Create a Port-Channel Interface: 
Code
   interface port-channel <channel-number>
(e.g., interface port-channel 1) 
2. Configure the Channel Group with LACP Mode: 
Code
   channel-group <channel-number> mode {active | passive}
(e.g., channel-group 1 mode active) 
  • activeInitiates LACP negotiation.
  • passiveResponds to LACP negotiation, but does not initiate it.
3. Configure LACP Parameters (Optional): 
  • LACP Rate: Controls how often LACP control packets are sent. 
Code
      lacp rate {fast | normal}
(e.g., lacp rate fast) 
  • LACP Port Priority: Sets the priority for individual ports within the LACP group.
Code
      lacp port-priority <priority>
(e.g., lacp port-priority 100) 
  • LACP System Priority: Sets the system-wide priority for the switch.
Code
      lacp system-priority <priority>
(e.g., lacp system-priority 1) 
  • LACP Maximum Bundle: Specifies the maximum number of active links in the LACP bundle.
Code
      lacp max-bundle <max-bundle-number>
(e.g., lacp max-bundle 3) 
4. Assign Physical Interfaces to the Port-Channel: 
  • Go to the configuration of the physical interface (e.g., interface GigabitEthernet 0/1).
  • Use the channel-group command to assign it to the port-channel.
  • Exit the interface configuration mode to return to the global configuration. 
Example:
Code
Router# configure terminalEnter configuration commands, ending with CTRL-Z or ENDRouter(config)# interface port-channel 1Router(config-if)# no shutdownRouter(config-if)# channel-group 1 mode activeRouter(config-if)# lacp rate fastRouter(config-if)# exitRouter(config)# interface GigabitEthernet 0/1Router(config-if)# no shutdownRouter(config-if)# channel-group 1 mode activeRouter(config-if)# exitRouter(config)# interface GigabitEthernet 0/2Router(config-if)# no shutdownRouter(config-if)# channel-group 1 mode activeRouter(config-if)# exitRouter(config)# end
Verification:
  • show interfaces port-channel <channel-number>: Shows the status of the port-channel interface.
  • show lacp : Shows the LACP configuration and status.
  • show lacp summary: Shows a summary of LACP configurations on the switch.
  • show lacp detail: Shows the LACP configuration and status for all the interfaces. 

Comments