Configuring an ArubaOS-CX switch as an access switch

An access switch can be any switch that supports LACP or static link aggregation. The steps in this section are specifically for an ArubaOS-CX switch. For non-ArubaOS-CX switches, refer to the documentation for your switch about how to enable LACP or static link aggregation.

Prerequisites

These steps assume that you have an ArubaOS-CX switch.

Procedure
  1. If the switch lacks a hostname, create one:
    switch(config)# hostname <HOSTNAME>

    For example:

    switch(config)# hostname Finance01
  2. Create a VLAN:
    switch(config)# vlan <VLAN-ID>

    For example:

    switch(config)# vlan 11
  3. Create a LAG:
    switch(config)# interface lag <ID>

    For example:

    switch(config)# interface lag 2
  4. Enable LACP for the LAG:
    switch(config-lag-if)# lacp mode active
  5. Create either an access interface or a trunk interface. You can create both allowed and native trunk interfaces on the access switch.
    • To create an access interface:

      switch(config-lag-if)# vlan access <VLAN_ID>

      For example:

      switch(config-lag-if)# vlan access 5
    • To create a native trunk interface:

      1. To create an allowed trunk interface:

        switch(config-lag-if)# vlan trunk allowed <VLAN_LIST> 

        For example:

        switch(config-lag-if)# vlan trunk allowed 30,50,120 
      2. To create a native trunk interface:

        switch(config-lag-if)# vlan trunk native <VLAN_ID> [tag]

        For example:

        switch(config-lag-if)# vlan trunk native 30 tag

    The trunk parameter enables tagging on a native VLAN. Only incoming packets that are tagged with the matching VLAN ID are accepted. Incoming packets that are untagged are dropped except for BPDUs. Egress packets are tagged.

  6. For multiple access switches in your topology, repeat the previous steps.
  7. Verify the configuration:
    switch# show lacp interfaces