Configures the selected GE port as a member of a port channel group (also referred as LAG)

As per the IEEE 802.3ad standard, LACP enables the aggregation of multiple physical links (ethernet ports) to form a single logical channel. When enabled, LACP dynamically determines if link aggregation is possible and then automatically configures the aggregation. LACP also allows the switch to dynamically reconfigure the LAGs. The LAG is enabled only when LACP detects that the remote device is also using LACP and is able to join the LAG.



Successful aggregation of two or more physical links is feasible only if the aggregating physical links are configured identically. To ensure uniformity in configuration across LAG members, implement configuration changes (such as changes in the switching mode, speed, etc.) on the logical port (the port-channel) and not on the physical port. Changes made on the port-channel will cascade down to each member of the LAG thereby retaining uniformity.

Supported in the following platforms:

  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000


lacp-channel-group <1-4> mode [active|passive]


lacp-channel-group <1-4> mode [active|passive]
lacp-channel-group <1-4> Associates this GE port with an existing port-channel group
  • <1-4> – Specify a value from 1 - 4.

Use the interface > port-channel > <1-4> command to configure a port-channel group. For more information, see interface-config-port-channel-instance.

mode [active|passive] After configuring the selected port as a LAG member, specify whether the port is an active or passive member within the group. An active member initiates and participates in LACP negotiations.
  • active – Configures the port as an active member. When set to active, the port always transmits LACPDU irrespective of the remote device‘s port mode.
  • passive – Configures the port as passive member. When set to passive, the port will only respond to LACPDU received from its corresponding Active port.

At least one port within a LAG, on either of the two negotiating peers, should be in the active mode. LACP negotiations are not initiated if all LAG member ports are passive. Further, the peer-to-peer LACP negotiations are always initiated by the peer with the lower system-priority value. For more information on configuring the system-priority, see lacp.


nx9500-6C8809(config-profile-testnx9000-if-ge1)#lacp-channel-group 2 mode active

nx9500-6C8809(config-profile-test2nx9000-if-ge1)#show context
 interface ge1
  lacp-channel-group 2 mode active
  lacp port-priority 2

To enable dynamic link aggregation on a device (service platform), execute the following steps:

  1. Create a port-channel group on the device. Enter the port-channel configuration mode.
    nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#interface port-channel 1

    Set the switching mode to access or trunk as per requirement. In this example, the mode is set to ‘access‘.

    nx9500-6C8809(config-device-B4-C7-99-6C-88-09-if-port-channel1)#switchport mode

    Specify the VLAN to switch, commit changes and exit.

    nx9500-6C8809(config-device-B4-C7-99-6C-88-09-if-port-channel1)#switchport access vlan 1
  2. Enable dynamic link aggregation on the device‘s physical port. Enter the GE port‘s configuration mode.
    nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#interface ge 2

    Enable link aggregation and associate the port with the port-channel group created in step 1.

    nx9500-6C8809(config-device-B4-C7-99-6C-88-09-if-ge2)#lacp-channel-group 1 mode
    Note, the mode can be set to passive. However, at least one of the aggregated GE ports in the port-channel group should be active in order to initiate link aggregation negotiations with other LACP-enabled peers.

    Specify the GE port‘s priority value.

    nx9500-6C8809(config-device-B4-C7-99-6C-88-09-if-ge2)#lacp port-priority 2

Related Commands

no Removes the selected GE port‘s port-channel group membership