Link Aggregation

Link Aggregation

1. Function Overview

Link aggregation is a function used to combine multiple LAN ports that connect network devices, and handle them as a single logical interface.
Link aggregation is a technology that is useful when multiple communications occur. Communications can be distributed by using a load balance function within the combined lines.
If one LAN port fails within the lines that were combined using link aggregation, and communications cannot be made, the other ports will continue communicating.

  • Link aggregation function overview
    image

The link aggregation functions in this product are shown below.

  • Link aggregation functions

    Functions provided Contents

    Static link aggregation

    Link aggregation for manually setting the LAN ports to combine.
    This begins to operate as a logical interface when the LAN ports link up.

2. Definition of Terms Used

Load balance

This is a function to distribute forwarded frames between the LAN ports that are associated with the logical interface.
As a distribution rule, the L2/L3/L4 information within frames is used.

3. Function Details

3.1. Static link aggregation specifications

The specifications for static link aggregation of this product are shown below.

  1. The link aggregation of this product can be defined into eight interfaces.
    An interface number from 1–8 can be assigned.
    A single logical interface can be associated with up to eight LAN ports.

  2. The settings shown below must be the same for each of the LAN ports contained within.

    • Port operation

    • Port mode (access/trunk [including native VLAN settings])

    • Associated VLAN

    • Associated multiple VLAN group

  3. It is recommended that the following settings be consistent across all LAN ports contained within.

    • Communication speed/communication mode

    • Flow control

    • Storm control

    • L2MS filter/non-L2MS filter

  4. The following operations can be performed for the logical interface.

    • Add description text (description command)

    • Enable/disable the interface (shutdown command)

    • Configure a VLAN and multiple VLAN

  5. The port-channel load-balance command allows you to select the load balance rule from the following items.
    The load balance setting is common to all logical interfaces.
    The default setting is the destination/source MAC address.

    • Destination MAC address

    • Source MAC address

    • Destination/source MAC address

    • Destination IP address

    • Source IP address

    • Destination/source IP address

    • Destination port number

    • Source port number

    • Destination/source port numbers

  6. Use the static-channel-group command to associate a LAN port with a static logical interface.

    • When associating a LAN port with an interface number for which there is no static logical interface, a new logical interface will be generated.

    • When the associated LAN port no longer exists as a result of removing LAN ports from a static logical interface, the relevant logical interface will be deleted.

    • One LAN port cannot be associated with multiple logical interfaces.

    • In addition, a LAN port used as a mirror port for port mirroring cannot be associated with a static logical interface.

  7. Use the show static-channel-group command to show the static logical interface’s status.

4. Related Commands

Related commands are indicated below.
For command details, refer to the command reference.

Operations Operating commands

Set the static logical interface

static-channel-group

Show the static logical interface status

show static-channel-group

Set load balance function rules

port-channel load-balance

5. Examples of Command Execution

5.1. Set the static logical interface

In this example, we will set link aggregation to use four LAN ports, in order to communicate between L2 switches.

image

  • Static link aggregation is set to static.
    The logical interface numbers are as follows: Switch A: #2, switch B: #5.

  • The LAN ports associated with the logical interface are all access ports, and are associated with the VLAN #1000.

    1. Define [switch A] VLAN #1000, and associate it with LAN ports (#15, #17, #19, #21, #23).
      Together with this, associate LAN ports (#17, #19, #21, #23) with the logical interface #2.

      Yamaha(config)#vlan database
      Yamaha(config-vlan)#vlan 1000 (1)
      Yamaha(config-vlan)#exit
      Yamaha(config)#interface port1.15 (2)
      Yamaha(config-if)#switchport access vlan 1000 (3)
      Yamaha(config-if)#interface port1.17 (4)
      Yamaha(config-if)#switchport access vlan 1000 (5)
      Yamaha(config-if)#static-channel-group 2 (6)
      Yamaha(config-if)#interface port1.19
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 2
      Yamaha(config-if)#interface port1.21
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 2
      Yamaha(config-if)#interface port1.23
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 2
      1 Define VLAN #1000
      2 Set LAN port #15
      3 Set the port as access port and associate it with VLAN #1000
      4 Set LAN port #17
      5 Set the port as access port and associate it with VLAN #1000
      6 Associate it with logical interface #2
    2. Confirm the setting status of [switch A] logical interface #2.

      Yamaha#show static-channel-group
      % Static Aggregator: sa2
      % Member:
         port1.17
         port1.19
         port1.21
         port1.23
    3. Define [switch B] VLAN #1000, and associate it with LAN ports (#07, #09, #11, #13, #15).
      Together with this, associate LAN ports (#09, #11, #13, #15) with logical interface #5.

      Yamaha(config)#vlan database
      Yamaha(config-vlan)#vlan 1000
      Yamaha(config-vlan)#exit
      Yamaha(config)#interface port1.7
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#interface port1.9
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 5
      Yamaha(config-if)#interface port1.11
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 5
      Yamaha(config-if)#interface port1.13
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 5
      Yamaha(config-if)#interface port1.15
      Yamaha(config-if)#switchport access vlan 1000
      Yamaha(config-if)#static-channel-group 5
    4. Confirm the setting status of [switch B] logical interface #5.

      Yamaha#show static-channel-group
      % Static Aggregator: sa5
      % Member:
         port1.9
         port1.11
         port1.13
         port1.15
    5. Enable [switch A] logical interface.

      Yamaha(config)#interface sa2 (1)
      Yamaha(config-if)#no shutdown (2)
      1 Set logical interface #2
      2 Enable the logical interface
    6. Enable [switch B] logical interface.

      Yamaha(config)#interface sa5 (1)
      Yamaha(config-if)#no shutdown (2)
      1 Set logical interface #5
      2 Enable the logical interface
    7. Confirm the setting status of [switch A] logical interface.

      Yamaha#show interface sa2
      Interface sa2
        Link is UP
        Hardware is AGGREGATE
        MRU 1522
        BPDU pass-through: Enabled
        EAP pass-through: Enabled
        Description:
        ifIndex 4502
        Vlan info :
          Switchport mode        : access
          Ingress filter         : enable
          Acceptable frame types : all
          Default Vlan           : 1000
          Configured Vlans       : 1000
        Interface counter:
          input  packets                        : 2109
                 bytes                          : 211698
                 drops                          : 0
                 broadcast-and-multicast-packets: 2109
          output packets                        : 24
                 bytes                          : 2952
                 drops                          : 0
                 broadcast-and-multicast-packets: 24
    8. Confirm the setting status of [switch B] logical interface.

      Yamaha#show interface sa5
      Interface sa5
        Link is UP
        Hardware is AGGREGATE
        MRU 1522
        BPDU pass-through: Enabled
        EAP pass-through: Enabled
        Description:
        ifIndex 4505
        Vlan info :
          Switchport mode        : access
          Ingress filter         : enable
          Acceptable frame types : all
          Default Vlan           : 1000
          Configured Vlans       : 1000
        Interface counter:
          input  packets                        : 24
                 bytes                          : 2952
                 drops                          : 0
                 broadcast-and-multicast-packets: 24
          output packets                        : 2109
                 bytes                          : 211698
                 drops                          : 0
                 broadcast-and-multicast-packets: 2109