Configuring an EtherChannel

Use this procedure to configure an EtherChannel.

  1. Type smitty etherchannel at the command line.
  2. Select Add an EtherChannel / Link Aggregation from the list and press Enter.
  3. Select the primary Ethernet adapters that you want on your EtherChannel and press Enter.
    If you are planning to use EtherChannel backup, do not select the adapter that you plan to use for the backup at this point.
    Note: The Available Network Adapters displays all Ethernet adapters. If you select an Ethernet adapter that is already being used (has an interface defined), you will get an error message. You first need to detach this interface if you want to use it.
  4. Enter the information in the fields according to the following guidelines:
    • Parent Adapter: Provides information of an EtherChannel's parent device (for example, when an EtherChannel belongs to a Shared Ethernet Adapter). This field displays a value of NONE if the EtherChannel is not contained within another adapter (the default). If the EtherChannel is contained within another adapter, this field displays the parent adapter's name (for example, ent6). This field is informational only and cannot be modified. The parent adapter option is available in AIX® 5.3 and later.
    • EtherChannel / Link Aggregation Adapters: You should see all primary adapters that you are using in your EtherChannel. You selected these adapters in the previous step.
    • Enable Alternate Address: This field is optional. Setting this to yes will enable you to specify a MAC address that you want the EtherChannel to use. If you set this option to no, the EtherChannel will use the MAC address of the first adapter.
    • Alternate Address: If you set Enable Alternate Address to yes, specify the MAC address that you want to use here. The address you specify must start with 0x and be a 12-digit hexadecimal address (for example, 0x001122334455).
    • Enable Gigabit Ethernet Jumbo Frames: This field is optional. In order to use this, your switch must support jumbo frames. This will only work with a Standard Ethernet (en) interface, not an IEEE 802.3 (et) interface. Set this to yes if you want to enable it.
    • Mode: You can choose from the following modes:
      • standard: In this mode, the EtherChannel uses an algorithm to choose which adapter it will send the packets out on. The algorithm consists of taking a data value, dividing it by the number of adapters in the EtherChannel, and using the remainder (using the modulus operator) to identify the outgoing link. The Hash Mode value determines which data value is fed into this algorithm (see the Hash Mode attribute for an explanation of the different hash modes). For example, if the Hash Mode is standard, it will use the packet's destination IP address. If this is 10.10.10.11 and there are 2 adapters in the EtherChannel, (1 / 2) = 0 with remainder 1, so the second adapter is used (the adapters are numbered starting from 0). The adapters are numbered in the order they are listed in the SMIT menu. This is the default operation mode.
      • round_robin: In this mode, the EtherChannel will rotate through the adapters, giving each adapter one packet before repeating. The packets may be sent out in a slightly different order than they were given to the EtherChannel, but it will make the best use of its bandwidth. It is an invalid combination to select this mode with a Hash Mode other than default. If you choose the round-robin mode, leave the Hash Mode value as default.
      • netif_backup: To enable Network Interface Backup mode, you can configure one adapter in the primary EtherChannel and one adapter in the backup EtherChannel. You can not select this mode from SMIT. For more information, see Configuring Network Interface Backup.
      • 8023ad: This option enables the use of the IEEE 802.3ad Link Aggregation Control Protocol (LACP) for automatic link aggregation. For more details about this feature, see IEEE 802.3ad Link Aggregation configuration.
      • teaming: In this mode, the EtherChannel has one primary channel and no backup channel. Unlike other modes, the teaming mode controls how a channel receives the packets. The packets are sent by using the EtherChannel standard (hash) algorithm. Switch configuration is not necessary because the teaming mode controls which adapter in the EtherChannel receives traffic.
        Note: You cannot dynamically switch between an EtherChannel in teaming mode and an EtherChannel in other modes (standard, round_robin, or 8023ad). To switch an EtherChannel in teaming mode to another mode, you must first remove the EtherChannel and then create a new EtherChannel with the new mode (standard, round_robin, or 8023ad).
    • IEEE 802.3ad Interval: You can choose from the following values:
      • long: This is the default value of the interval. When selected, the EtherChannel will request LACP packets from its partner at long interval value as specified by the protocol
      • short: When selected, the EtherChannel will request LACP packets from its partner at short interval value as specified by the protocol.
        Note: The interval value is only used when EtherChannel is operating in IEEE 802.3ad mode. Otherwise, the value is ignored.
        Note: AIX honors both long and short interval request from its partner.
    • Hash Mode: Choose from the following hash modes, which will determine the data value that will be used by the algorithm to determine the outgoing adapter:
      • default: The destination IP address of the packet is used to determine the outgoing adapter. For non-IP traffic (such as ARP), the last byte of the destination MAC address is used to do the calculation. This mode guarantees packets are sent out over the EtherChannel in the order they were received, but it may not make full use of the bandwidth.
      • src_port: The source UDP or TCP port value of the packet is used to determine the outgoing adapter. If the packet is not UDP or TCP traffic, the last byte of the destination IP address will be used. If the packet is not IP traffic, the last byte of the destination MAC address will be used.
      • dst_port: The destination UDP or TCP port value of the packet is used to determine the outgoing adapter. If the packet is not UDP or TCP traffic, the last byte of the destination IP will be used. If the packet is not IP traffic, the last byte of the destination MAC address is used.
      • src_dst_port: The source and destination UDP or TCP port values of the packet is used to determine the outgoing adapter (specifically, the source and destination ports are added and then divided by two before being fed into the algorithm). If the packet is not UDP or TCP traffic, the last byte of the destination IP is used. If the packet is not IP traffic, the last byte of the destination MAC address will be used. This mode can give good packet distribution in most situations, both for clients and servers.
        Note: It is an invalid combination to select a Hash Mode other than default with a Mode of round_robin.
      To learn more about packet distribution and load balancing, see EtherChannel load-balancing options.
    • Backup Adapter: Specify a backup adapter for the EtherChannel adapter. After a failover event because of the loss of primary EtherChannel adapter, the backup adapter is used until the primary EtherChannel adapter recovers.
    • Internet Address to Ping: This field is optional and takes effect only if you are running Network Interface Backup mode or if you have one or more adapters in EtherChannel and one or more adapters in the backup list. EtherChannel ping the IP address or host name that you specify. If EtherChannel is unable to ping the IP address for the number of times specified in the Number of Retries field and within the time interval that is specified in the Retry Timeout field, EtherChannel changes over to the other adapters in the backup list. To reset this field such that the previously entered value for this option is removed, enter the Internet Address to Ping: option value as 0.
      Note: Monitoring pings in the multipath routing environment is not supported. But as a workaround, use a separate address to ping for each EtherChannel and add a specific host route with the right EtherChannel interface name for the destination IP to the routing table.
    • Number of Retries: Enter the number of ping response failures that are allowed before the EtherChannel switches adapters. The default is three. This field is optional and valid only if you have set an Internet Address to Ping.
    • Retry Timeout: Enter the number of seconds between the times when the EtherChannel will ping the Internet Address to Ping. The default is one second. This field is optional and valid only if you have set an Internet Address to Ping.
    • MAC swap: Select yes if you want to enable the MAC swap field. Enabling MAC swap field is allowed only on an EtherChannel in Network Interface Backup mode (one primary adapter and one backup adapter). Enabling the mac_swap option allows the backup adapter to retain its MAC address and then if failover occurs, this MAC address is swapped to the primary adapter and the MAC address of the primary adapter is swapped to the backup adapter. The default value of the mac_swap option is no. This default value is applicable for the MAC address of the primary adapter that must be assigned to the backup adapter. In certain network configurations, such as a virtual Network Interface Controllers (vNIC) and Single Root I/O Virtualization (SR-IOV) EtherChannel setup, the MAC swap operation might send duplicate packets to an inactive primary adapter after a failover. Enabling the mac_swap option avoids this situation. You must not configure an EtherChannel with the mac_swap option enabled unless a single primary adapter and a single backup adapter are configured.
  5. Press Enter after changing the desired fields to create the EtherChannel.
  6. Configure IP over the newly-created EtherChannel device by typing smitty chinet at the command line.
  7. Select your new EtherChannel interface from the list.
  8. Fill in all of the required fields and press Enter.

For additional tasks that can be performed after the EtherChannel is configured, see Listing EtherChannels or Link Aggregations.