Configuring a Layer 2 dynamic aggregation group

Prerequisites

You must be in the global configuration context: switch(config)#

Procedure
  1. Create a Layer 2 aggregate interface and access the Layer 2 aggregate interface view by entering:
    switch(config)# interface lag <ID>

    The range of the LAG interface ID is 1 to 256.

    While creating the Layer 2 aggregate interface, the system automatically creates a Layer 2 dynamic aggregation group numbered the same.

  2. Set the operational state of every interface in the LAG to up by entering:
    switch(config-lag-if)# no shutdown
    NOTE:
    This command does not impact the administrative state of the member interfaces because the command was entered at the level of the LAG. To change the administrative state of a member interface, enter the command at the interface level. For example:
    switch(config)# interface 1/1/2
    switch(config-if)# no shutdown
  3. Disable routing by entering:
    switch(config-lag-if)# no routing

    See the Command-Line Interface Guide for your switch and software version for more information about the interface <PORT-ID> command.

  4. Configure the aggregation group to operate in dynamic mode by entering:
    switch(config-lag-if)# lacp mode {active | passive}

    For example:

    switch(config-lag-if)# lacp mode active
  5. Assign a native VLAN ID to a trunk interface by entering:
    switch(config-lag-if)# vlan trunk native <VLAN-ID>

    For example:

    switch(config-lag-if)# vlan trunk native 1
  6. Use the following steps to add a maximum of eight interfaces to the LAG:
    1. Assign an interface to the LAG:
      switch(config-lag-if)# interface <PORT-ID>

      For example:

      switch(config-lag-if)# interface 1/1/1

      See the Command-Line Interface Guide for your switch and software version for more information about the interface <PORT-ID> command.

    2. Assign an ID to the LAG:
      switch(config-if)# lag <ID>

      For example:

      switch(config-if)# lag 100
    3. Set the administrative state of the member interface to up:
      switch(config-if)# no shutdown
  7. View the configuration by entering:
    switch(config-if)# show running-config

    For example:

    switch(config-if)# show running-config
    Current configuration:
    !
    !Version ArubaOS-CX 10.02
    
    led locator on
    !
    !
    !
    
    !
    !
    !
    !
    !
    vlan 1
    interface lag 20
        no shutdown
        no routing
        vlan trunk native 1
        vlan trunk allowed all
        lacp mode active
    interface 1/1/1
        no shutdown
        lag 100

Adding two interfaces to a Layer 2 dynamic LAG

switch(config)# interface lag 20
switch(config-lag-if)# no shutdown
switch(config-lag-if)# no routing
switch(config-lag-if)# lacp mode active
switch(config-lag-if)# vlan trunk native 1
switch(config-lag-if)# exit
switch(config)# interface 1/1/1
switch(config-if)# interface 1/1/2
switch(config-if)# show running-config
Current configuration:
!
!Version ArubaOS-CX 10.02

led locator on
!
!
!

!
!
!
!
!
vlan 1
interface lag 20
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed all
interface 1/1/1
    no shutdown
    lag 100
interface 1/1/2
    no shutdown
    lag 100
switch(config-if)#