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

S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Typical Configuration Examples

This document provides examples for configuring features in typical usage scenarios.
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).
Interoperation and Replacement Guide for Link Aggregation on Huawei and Cisco Switches

Interoperation and Replacement Guide for Link Aggregation on Huawei and Cisco Switches

Overview of Ethernet Link Aggregation

Definition

Ethernet link aggregation, also called Eth-Trunk, bundles multiple physical links to form a logical link to increase link bandwidth. The bundled links back up each other, increasing reliability.

Purpose

As the network scale expands increasingly, users propose increasingly high requirements on Ethernet backbone network bandwidth and reliability. Originally, to increase the bandwidth, users use high-speed cards or devices supporting high-speed interface cards to replace old interface cards or devices. This solution, however, is costly and inflexible.

Link aggregation helps increase bandwidth by bundling a group of physical interfaces into a single logical interface, without upgrading the hardware. In addition, link aggregation provides link backup, greatly improving link reliability.

Link aggregation has the following advantages:

  • Increased bandwidth

    The bandwidth of the link aggregation interface is the sum of bandwidth of member interfaces.

  • Improved reliability

    When an active link fails, traffic on this active link is switched to another active link, improving reliability of the link aggregation interface.

  • Load balancing

    In a link aggregation group (LAG), traffic is load balanced among active links of member interfaces.

Classification of Link Aggregation

Link aggregation can work in manual load balancing mode or LACP mode depending on whether the Link Aggregation Control Protocol (LACP) is used.

  • Manual load balancing mode: You must manually create an Eth-Trunk and add member interfaces to the Eth-Trunk. In this mode, LACP is not required. This mode applies to the scenario where a high link bandwidth between two directly connected devices is required but the remote device does not support the LACP protocol.

  • LACP mode: In LACP mode, you also need to manually create an Eth-Trunk and add member interfaces to the Eth-Trunk. Active member interfaces are selected by sending LACP Data Units (LACPDUs) in LACP mode, which is different from the implementation in manual loading balancing mode. When a group of interfaces are added to an Eth-Trunk, they are classified into active and inactive ones by using LACPDUs. The LACP mode is also called the M:N mode, which implements both load balancing and link backup. M active links in the link aggregation group are responsible for forwarding and load balancing data, while the other N inactive links are backup ones and do not forward data. If an active link becomes faulty, the system selects the link with the highest priority from N inactive links. The inactive link becomes active and starts to forward data.

The implementation mechanisms of link aggregation in manual load balancing mode and LACP mode provided by different vendors are similar, and only commands and default settings are different.

Comparison Between Implementations of Link Aggregation on Huawei and Cisco Switches

Overview

The implementation mechanism of link aggregation in manual load balancing mode and LACP mode on Huawei switches is similar to that on Cisco switches, but commands and default settings are different.

Comparison Between Default Settings

Table 3-114 compares default settings of link aggregation on Huawei switches and Cisco switches.

Table 3-114  Comparison between default settings

Parameter

Huawei Switches

Cisco Switch

LACP system priority

32768

32768

LACP interface priority

32768

32768

Load balancing mode

Src-dst-ip

-

NOTE:

The default load balancing modes on Cisco switches are different depending on models. For details, see Cisco product documentation.

Timeout interval of LACPDUs

90s

90s

Command Comparison

Table 3-115 compares link aggregation commands on Huawei switches and Cisco switches.

Table 3-115  Command comparison

Function

Command on Huawei Switches

Command on Cisco Switches

Create an Eth-Trunk.

interface Eth-Trunk trunk-id

interface port-channel group_number

Configure a link aggregation mode.

mode { lacp | manual load-balance }

channel-group group_number mode { active | auto |desirable | on | passive }

NOTE:

Cisco switches provide five link aggregation modes. The active and passive modes of link aggregation on Cisco switches correspond to those on Huawei switches. The on mode on Cisco switches corresponds to the manual load balancing mode on Huawei switches. The auto and desirable modes of link aggregation are based on the Port Aggregation Protocol (PAgP), which is a Cisco proprietary protocol. Huawei switches do not provide the corresponding link aggregation mode.

Add member interfaces to an Eth-Trunk.

eth-trunk trunk-id [ mode { active | passive } ]

channel-group group_number mode { active | auto |desirable | on }

Configure the LACP system priority.

lacp priority priority (system view)

lacp system-priority priority_value (system view)

Configure the LACP interface priority.

lacp priority priority (interface view)

lacp system-priority priority_value (interface view)

Configure a load balancing mode.

load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dst-mac }

port-channel load-balance { src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip | src-port | dst-port | src-dst-port } [ module slot]

Configure the threshold for the number of active interfaces.

max active-linknumber link-number

lacp max-bundle number

Check the link aggregation configuration.

display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ]

show interfaces interface-type interface-number etherchannel

show etherchannel load-balance

Interoperation and Replacement Solution for Link Aggregation

Overview of the Interoperation and Replacement Solution

The link aggregation mode determines two interworking and replacement solutions.

  • A Huawei S series switch interworks with and replaces a Cisco switch using link aggregation in manual mode.

  • A Huawei S series switch interworks with and replaces a Cisco switch using link aggregation in static LACP mode.

Applicable Models and Versions

This example applies to all switch models of all versions.

Interoperation Analysis

The implementation mechanism of link aggregation in manual mode and LACP mode on Huawei switches is similar to that on Cisco switches, so a Huawei S series switch can simply interwork with and replace a Cisco switch.

Interoperation and Replacement Solution 1: Link Aggregation in Manual Mode

Overview

A Huawei S series switch and a Cisco switch are configured with link aggregation in manual mode for interworking.

Configuration Notes

This example applies to Huawei switches of all versions.

Networking Requirements

In Figure 3-95, The Cisco switch and Huawei S series switch are configured with the LAG in manual mode to improve bandwidth and reliability between them.

Figure 3-95  Networking of interworking and replacement using link aggregation in manual mode
Configuration Roadmap
  • Configuration logic for link aggregation in manual mode on Cisco switches:

    1. Create a port channel and add member interfaces, and configure a link aggregation mode.

    2. Configure a load balancing mode.

  • Configuration logic for link aggregation in manual mode on Huawei switches:

    1. Create an Eth-Trunk and add interfaces to the Eth-Trunk.

    2. Configure a load balancing mode.

Procedure

  1. Configure link aggregation in manual mode on the Cisco switch.

    # Create a port channel and add member interfaces, and configure a link aggregation mode on the Cisco switch.

    Switch# configure terminal
    Switch(config)# hostname Cisco
    Cisco(config)# interface range GigabitEthernet 0/1 -3
    Cisco(config-if-range)# channel-group 2 mode on
    Cisco(config-if-range)# end
    

    # Configure a load balancing mode of the port channel.

    Cisco# configure terminal
    Cisco(config)# port-channel load-balance src-dst-mac
    Cisco(config)# end

  2. Configure link aggregation in manual mode on the Huawei S series switch.

    # Create an Eth-Trunk on the Huawei S series switch and add member interfaces to the Eth-Trunk. By default, Huawei switches are connected using link aggregation in manual mode. Therefore, you do not need to configure the link aggregation mode.

    <HUAWEI> system-view
    [HUAWEI] sysname Huawei
    [Huawei] interface eth-trunk 1
    [Huawei-Eth-Trunk1] trunkport gigabitethernet 1/0/1 to 1/0/3
    [Huawei-Eth-Trunk1] quit

    # Configure the load balancing mode of Eth-Trunk 1.

    [Huawei] interface eth-trunk 1
    [Huawei-Eth-Trunk1] load-balance src-dst-mac
    [Huawei-Eth-Trunk1] quit
    

  3. Verify the configuration.

    • Run the display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ] command to check the link aggregation configuration on the Huawei S series switch.

    • Run the show interfaces interface-type interface-number etherchannel command to check link aggregation parameters and status information of corresponding interfaces on the Cisco switch.

    • Run the show etherchannel load-balance command to check the load balancing mode of link aggregation on the Cisco switch.

Interoperation and Replacement Solution 2: Link Aggregation in LACP Mode

Overview

A Huawei S series switch and a Cisco switch are configured with link aggregation in LACP mode for interworking.

Configuration Notes

This example applies to Huawei switches of all versions.

Networking Requirements

In Figure 3-96, SwitchA (Cisco switch) and SwitchB (Huawei S series switch) are configured with the LAG in LACP mode to improve bandwidth and reliability between them. The LAG is composed of three links, two of which are active links and load balance data. The third link is a backup link. When an active link fails, the backup link replaces the faulty link to ensure the reliability of data transmission. SwitchB is the Actor.

Figure 3-96  Networking of interworking and replacement using link aggregation in LACP mode
Configuration Roadmap
  • The configuration roadmap for link aggregation in LACP mode on Cisco switches is as follows:

    1. Create a port channel and add member interfaces, and configure a link aggregation mode.

    2. Configure a load balancing mode.

  • The configuration roadmap for link aggregation in LACP mode on Huawei switches is as follows:

    1. Create an Eth-Trunk and add member interfaces, and configure the Eth-Trunk to work in LACP mode.

    2. Configure a load balancing mode.

    3. Set the LACP system priority to determine the Actor. Set the upper threshold for the number of active interfaces based on interfaces of the Actor to improve network reliability with bandwidth guarantee.

    4. Set interface priorities and determine active interfaces so that interfaces with higher priorities are selected as active interfaces.

Procedure

  1. Configure link aggregation in LACP mode on the Cisco switch.

    # Create a port channel and add member interfaces, and configure a link aggregation mode on SwitchA.

    Switch# configure terminal
    Switch(config)# hostname SwitchA
    SwitchA(config)# interface range GigabitEthernet 0/1 -3
    SwitchA(config-if-range)# channel-group 2 mode passive
    SwitchA(config-if-range)# end
    

    # Configure a load balancing mode of the port channel.

    SwitchA# configure terminal
    SwitchA(config)# port-channel load-balance src-dst-mac
    SwitchA(config)# end

  2. Configure link aggregation in LACP mode on the Huawei S series switch.

    # Create an Eth-Trunk on the Huawei S series switch, configure the Eth-Trunk to work in LACP mode, and add member interfaces to the Eth-Trunk.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchB
    [SwitchB] interface eth-trunk 1
    [SwitchB-Eth-Trunk1] mode lacp
    [SwitchB-Eth-Trunk1] trunkport gigabitethernet 1/0/1 to 1/0/3
    

    # Configure a load balancing mode on Eth-Trunk 1 of the Huawei S series switch.

    [SwitchB-Eth-Trunk1] load-balance src-dst-mac
    [SwitchB-Eth-Trunk1] quit
    

    # Set the system priority of Huawei S series switch to 100 so that it can become the LACP Actor. (The LACP system priority of the Cisco switch uses the default value 32768, so the Huawei S series switch with LACP system priority 100 becomes the Actor.) Then set the upper threshold for the number of active interfaces.

    [SwitchB] lacp priority 100
    [SwitchB] interface eth-trunk 1
    [SwitchB-Eth-Trunk1] max active-linknumber 2
    [SwitchB-Eth-Trunk1] quit

    # Set the interface priority to determine active links.

    [SwitchB] interface gigabitethernet 1/0/1
    [SwitchB-GigabitEthernet1/0/1] lacp priority 100
    [SwitchB-GigabitEthernet1/0/1] quit
    [SwitchB] interface gigabitethernet 1/0/2
    [SwitchB-GigabitEthernet1/0/2] lacp priority 100
    [SwitchB-GigabitEthernet1/0/2] quit
    

  3. Verify the configuration.

    • Run the display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ] command to check the link aggregation configuration on the Huawei S series switch.

    • Run the show interfaces interface-type interface-number etherchannel command to check link aggregation parameters and status information of corresponding interfaces on the Cisco switch.

    • Run the show etherchannel load-balance command to check the load balancing mode of link aggregation on the Cisco switch.

Download
Updated: 2019-04-20

Document ID: EDOC1000069520

Views: 691469

Downloads: 30129

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