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-channel, channel-group, and lacp. You'll also need to ensure that the LACP rate and system priority are properly configured.
interface port-channel 1) channel-group 1 mode active) active: Initiates LACP negotiation.passive: Responds to LACP negotiation, but does not initiate it.
- LACP Rate: Controls how often LACP control packets are sent.
lacp rate fast) - LACP Port Priority: Sets the priority for individual ports within the LACP group.
lacp port-priority 100) - LACP System Priority: Sets the system-wide priority for the switch.
lacp system-priority 1) - LACP Maximum Bundle: Specifies the maximum number of active links in the LACP bundle.
lacp max-bundle 3) - Go to the configuration of the physical interface (e.g.,
interface GigabitEthernet 0/1). - Use the
channel-groupcommand to assign it to the port-channel. - Exit the interface configuration mode to return to the global configuration.
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
Post a Comment