No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Ethernet Switching

AR650, AR1600, and AR6100 V300R003

This document describes how to configure the components for LAN services, including link aggregation groups, VLANs, voice VLANs, MAC address tables, transparent bridging, as well as GVRP, STP/RSTP, and MSTP protocols.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring Link Aggregation in LACP Mode

Example for Configuring Link Aggregation in LACP Mode

Networking Requirements

To increase the bandwidth and improve the connection reliability, you can configure an LAG on two directly connected routers, as shown in Figure 2-13. The requirements are as follows:

  • The LAG contains three member links. Two links function as active links to implement load balancing, and the other link functions as the backup link.

  • When a fault occurs on an active link, the backup link replaces the faulty one to ensure nonstop services.

Figure 2-13  Link aggregation in LACP mode

Configuration Roadmap

The configuration roadmap is as follows:

  1. Create an Eth-Trunk on each router and configure the Eth-Trunk to work in LACP mode.

  2. Add member interfaces to the Eth-Trunk.

  3. Set the LACP system priority and determine the Actor.

  4. Set the maximum number of active interfaces in the Eth-Trunk.

  5. Set LACP interface priorities and determine active links.

Procedure

  1. Create Eth-Trunk 1 and configure Eth-Trunk 1 to work in LACP mode.

    # Configure RouterA.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] interface eth-trunk 1
    [RouterA-Eth-Trunk1] mode lacp-static
    [RouterA-Eth-Trunk1] quit

    # Configure RouterB.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] interface eth-trunk 1
    [RouterB-Eth-Trunk1] mode lacp-static
    [RouterB-Eth-Trunk1] quit

  2. Add member interfaces to Eth-Trunk 1.

    # Configure RouterA.

    [RouterA] interface ethernet 2/0/1
    [RouterA-Ethernet2/0/1] eth-trunk 1
    [RouterA-Ethernet2/0/1] quit
    [RouterA] interface ethernet 2/0/2
    [RouterA-Ethernet2/0/2] eth-trunk 1
    [RouterA-Ethernet2/0/2] quit
    [RouterA] interface ethernet 2/0/3
    [RouterA-Ethernet2/0/3] eth-trunk 1
    [RouterA-Ethernet2/0/3] quit

    # Configure RouterB.

    [RouterB] interface ethernet 2/0/1
    [RouterB-Ethernet2/0/1] eth-trunk 1
    [RouterB-Ethernet2/0/1] quit
    [RouterB] interface ethernet 2/0/2
    [RouterB-Ethernet2/0/2] eth-trunk 1
    [RouterB-Ethernet2/0/2] quit
    [RouterB] interface ethernet 2/0/3
    [RouterB-Ethernet2/0/3] eth-trunk 1
    [RouterB-Ethernet2/0/3] quit

  3. Set the LACP system priority on RouterA to 100 so that RouterA becomes the Actor.

    [RouterA] lacp priority 100

  4. Set maximum number of active interfaces in Eth-Trunk 1 on RouterA to 2.

    [RouterA] interface eth-trunk 1
    [RouterA-Eth-Trunk1] max active-linknumber 2
    [RouterA-Eth-Trunk1] quit

  5. Set LACP interface priorities and determine active links on RouterA.

    [RouterA] interface ethernet 2/0/1
    [RouterA-Ethernet2/0/1] lacp priority 100
    [RouterA-Ethernet2/0/1] quit
    [RouterA] interface ethernet 2/0/2
    [RouterA-Ethernet2/0/2] lacp priority 100
    [RouterA-Ethernet2/0/2] quit

  6. Verify the configuration.

    # Check information about the Eth-Trunk of the routers and check whether the negotiation is successful.

    [RouterA] display eth-trunk 1
     Eth-Trunk1's state information is:
     Local:
     LAG ID: 1                   WorkingMode: STATIC
     Preempt Delay: Disabled     Hash arithmetic: According to SA-XOR-DA
     System Priority: 100        System ID: 00e0-fca8-0417
     Least Active-linknumber: 1   Max Active-linknumber: 2
     Operate status: Up        Number Of Up Port In Trunk: 2
     ------------------------------------------------------------------------------
     ActorPortName          Status    PortType  PortPri   PortNo PortKey   PortState Weight
     Ethernet2/0/1          Selected  100M       100      6145    2865      11111100     1
     Ethernet2/0/2          Selected  100M       100      6146    2865      11111100     1
     Ethernet2/0/3          Unselect  100M       32768    6147    2865      11100000     1
    
     Partner:
     ------------------------------------------------------------------------------
     PartnerPortName        SysPri    SystemID    PortPri PortNo PortKey   PortState
     Ethernet2/0/1          32768  00e0-fca6-7f85  32768     6145   2609      11111100
     Ethernet2/0/2          32768  00e0-fca6-7f85  32768     6146   2609      11111100
     Ethernet2/0/3          32768  00e0-fca6-7f85  32768     6147   2609      11110000
    
    [RouterB] display eth-trunk 1
     Eth-Trunk1's state information is:
     Local:
     LAG ID: 1                      WorkingMode: STATIC
     Preempt Delay: Disabled        Hash arithmetic: According to SA-XOR-DA
     System Priority: 32768         System ID: 00e0-fca6-7f85
     Least Active-linknumber: 1     Max Active-linknumber: 8
     Operate status: Up             Number Of Up Port In Trunk: 2
     ------------------------------------------------------------------------------
     ActorPortName          Status    PortType  PortPri   PortNo  PortKey   PortState Weight
     Ethernet2/0/1          Selected  100M       32768      6145    2609      11111100     1
     Ethernet2/0/2          Selected  100M       32768      6146    2609      11111100     1
     Ethernet2/0/3          Unselect  100M       32768      6147    2609      11100000     1
    
     Partner:
     ------------------------------------------------------------------------------
     PartnerPortName        SysPri    SystemID     PortPri  PortNo  PortKey   PortState
     Ethernet2/0/1          100    00e0-fca8-0417  100      6145     2865      11111100
     Ethernet2/0/2          100    00e0-fca8-0417  100      6146     2865      11111100
     Ethernet2/0/3          100    00e0-fca8-0417  32768    6147     2865      11110000
    

    According to the preceding information, the system priority of RouterA is 100, which is higher than the system priority of RouterB; Ethernet2/0/1 and Ethernet2/0/2 are active interfaces and are in Selected state; Ethernet2/0/3 is in Unselect state. That is, load balancing and redundancy are implemented.

Configuration Files

  • Configuration file of RouterA

    #
     sysname RouterA
    #
     lacp priority 100
    #
    interface Eth-Trunk1
     mode lacp-static
     max active-linknumber 2
    #
    interface Ethernet2/0/1
     eth-trunk 1
     lacp priority  100
    #
    interface Ethernet2/0/2
     eth-trunk 1
     lacp priority  100
    #
    interface Ethernet2/0/3
     eth-trunk 1
    #
    return
  • Configuration file of RouterB

    #
     sysname RouterB
    #
    interface Eth-Trunk1
     mode lacp-static
    #
    interface Ethernet2/0/1
     eth-trunk 1
    #
    interface Ethernet2/0/2
     eth-trunk 1
    #
    interface Ethernet2/0/3
     eth-trunk 1
    #
    return
Download
Updated: 2019-04-12

Document ID: EDOC1100041791

Views: 58982

Downloads: 40

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next