Got it

Link aggregation configuration

Latest reply: Dec 15, 2021 13:04:36 507 25 16 0 0

  Link aggregation is very important for improving link reliability, increasing link bandwidth, and load sharing in the network. Link aggregation in Huawei devices is divided into Manual mode and LACP mode

The number of Huawei link aggregation groups ranges from 0 to 63. There are six types of load sharing modes for link aggregation:

·       Based on the original IP

·       Based on the original MAC

·       Based on the original and destination IP

·       Based on the original and destination MAC

·       Based on the destination IP

·       Based on the destination MAC.


 

Lab topology

LAB


 

Manual mode Configuration:

In manual mode, the establishment of Eth-Trunk and the joining of member interfaces are manually configured, without the participation of link aggregation control protocol LACP. When you need to provide a larger link bandwidth between two directly connected devices and the device does not support the LACP protocol, you can use the manual mode. At the same time, in manual mode, all active links participate in data forwarding and share traffic.


The Configuration


<HUAWEI> system-view

[HUAWEI] sysname SwitchA

[SwitchA] interface eth-trunk 1                              

//Create an Eth-Trunk interface with ID 1

[SwitchA-Eth-Trunk1]  trunkport gigabitethernet 0/0/1 to 0/0/3

//Add three member interfaces GE0/0/1 to GE0/0/3 to the Eth-Trunk1 interface

[SwitchA-Eth-Trunk1]  port link-type trunk

//Set the interface link type to trunk, the default link type of the interface is not trunk port

[SwitchA-Eth-Trunk1] port trunk allow-pass vlan 5 10

//Allowing the intended VLANs

[SwitchA-Eth-Trunk1]  load-balance src-dst-mac

//Configure Eth-Trunk1 to perform load sharing based on source MAC address and destination MAC address

[SwitchA-Eth-Trunk1] quit

 


Verification

  Execute the display eth-trunk 1 command in any view to check whether the Eth-Trunk is successfully created and the member interfaces are added correctly.


[SwitchA] display eth-trunk 1

Eth-Trunk1's state information is:

WorkingMode: NORMAL           Hash arithmetic: According to SA-XOR-DA

Least Active-linknumber: 1     Max Bandwidth-affected-linknumber: 8

Operate status: up             Number Of Up Port In Trunk: 3

--------------------------------------------------------------------------------

PortName                           Status       Weight

GigabitEthernet0/0/1               Up           1

GigabitEthernet0/0/2               Up           1

GigabitEthernet0/0/3               Up           1

 

 

  It can be seen from the above information that Eth-Trunk 1 contains three member interfaces GigabitEthernet0/0/1, GigabitEthernet0/0/2, and GigabitEthernet0/0/3, and the status of the member interfaces are all Up. The "Operate status" of Eth-Trunk 1 is up.


 

LACP mode configuration:

In LACP mode, you can specify the active link and the inactive link. If an active link fails, the link aggregation group automatically selects a link from the inactive link as the active link, and the number of links involved in data forwarding constant. The number of active links ranges from 1-8


Configuration


<HUAWEI> system-view

[HUAWEI] sysname SwitchA

[SwitchA] interface eth-trunk 1

//Create an Eth-Trunk interface with ID 1

[SwitchA-Eth-Trunk1] mode lacp

//Configure the link aggregation mode to LACP mode

[SwitchA] interface gigabitethernet 0/0/1

[SwitchA-GigabitEthernet0/0/1] eth-trunk 1

//Add GE0/0/1 interface to Eth-Trunk1

[SwitchA-GigabitEthernet0/0/1] quit

[SwitchA] interface gigabitethernet 0/0/2

[SwitchA-GigabitEthernet0/0/2] eth-trunk 1

//Add GE0/0/2 interface to Eth-Trunk1

[SwitchA-GigabitEthernet0/0/2] quit

[SwitchA] interface gigabitethernet 0/0/3

[SwitchA-GigabitEthernet0/0/3] eth-trunk 1

//Add GE0/0/3 interface to Eth-Trunk1

[SwitchA-GigabitEthernet0/0/3] quit

[SwitchA] lacp priority 100

//The default LACP priority of the system is 32768. Change the priority of SwitchA to be higher than the priority of SwitchB and act as the active end.

[SwitchA] interface eth-trunk 1

[SwitchA-Eth-Trunk1] max active-linknumber 2

//The upper threshold of the number of active interfaces in the link aggregation group is 8 by default. Modify the upper threshold of the number of active interfaces to 2.

[SwitchA-Eth-Trunk1] quit

[SwitchA] interface gigabitethernet 0/0/1

[SwitchA-GigabitEthernet0/0/1] lacp priority 100

//The LACP priority of the interface is 32768 by default. Modify the LACP priority of the GE0/0/1 interface to 100, as the active interface

[SwitchA-GigabitEthernet0/0/1] quit

[SwitchA] interface gigabitethernet 0/0/2

[SwitchA-GigabitEthernet0/0/2] lacp priority 100

//The LACP priority of the interface is 32768 by default. Modify the LACP priority of the GE0/0/2 interface to 100, as the active interface

[SwitchA-GigabitEthernet0/0/2] quit


 

Verification


  Execute the display eth-trunk 1 command in any view to check whether the link negotiation is successful.


[SwitchA] display eth-trunk 1

Eth-Trunk1's state information is:

Local:                                                                         

LAG ID: 1                       WorkingMode: LACP                            

Preempt Delay: Disabled         Hash arithmetic: According to SIP-XOR-DIP      

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

GigabitEthernet0/0/1             Selected  1GE       100      6145    2865      11111100     1

GigabitEthernet0/0/2             Selected  1GE       100      6146    2865      11111100     1

GigabitEthernet0/0/3             Unselect  1GE       32768    6147    2865      11100000     1

 

Partner:

--------------------------------------------------------------------------------

ActorPortName                     SysPri    SystemID    PortPri PortNo PortKey   PortState

GigabitEthernet0/0/1              32768  00e0-fca6-7f85  32768     6145   2609      11111100

GigabitEthernet0/0/2              32768  00e0-fca6-7f85  32768     6146   2609      11111100

GigabitEthernet0/0/3              32768  00e0-fca6-7f85  32768     6147   2609      11110000

 

 

From the above information, you can see that the system priority of SwitchA is 100, which is higher than the system priority of SwitchB. The member interfaces GigabitEthernet0/0/1 and GigabitEthernet0/0/2 of the Eth-Trunk become active interfaces and are in the "Selected" state, and the interface GigabitEthernet0/0/3 is in the "Unselect" state. At the same time, it realizes the load sharing of M links and N Redundant backup function of two links.



Link aggregation troubleshooting notes

Is the number of interfaces the same?

Are the link aggregation modes the same?

Is the interface rate the same?

Whether the interface duplex mode is the same?

Whether the interface flow control configuration is the same?

 


GOOD
View more
  • x
  • convention:

hemin88
hemin88 Created May 23, 2021 05:49:07 (0) (0)
Thank you for your support  
BAZ
MVE Author Created May 23, 2021 07:28:15

Good explanation. Thanks.
Font is funky too :)
View more
  • x
  • convention:

hemin88
hemin88 Created May 23, 2021 08:09:12 (1) (0)
Thanks sir  
zaheernew
zaheernew Reply hemin88  Created May 23, 2021 09:33:39 (0) (0)
 
IndianKid
Moderator Author Created May 23, 2021 07:43:31

Cool font with a great example. Thanks for such a good explanation.
View more
  • x
  • convention:

hemin88
hemin88 Created May 23, 2021 08:10:11 (1) (0)
Thank you, yes I like this font, looks like handwriting, very comfortable  
IndianKid
Moderator Author Created May 23, 2021 08:14:58

  • x
  • convention:

zaheernew
zaheernew Created May 23, 2021 09:33:58 (0) (0)
 
Faridrami
Faridrami Created May 26, 2021 09:14:26 (0) (0)
 
E.DR_91
MVE Author Created May 23, 2021 08:24:42

Good explanation. Thanks.
View more
  • x
  • convention:

hemin88
hemin88 Created May 23, 2021 08:36:21 (0) (0)
thank you  
Good sharing
View more
  • x
  • convention:

hemin88
hemin88 Created May 23, 2021 09:21:05 (0) (0)
Thanks a lot  
Good sahre
View more
  • x
  • convention:

hemin88
hemin88 Created May 23, 2021 09:21:16 (0) (0)
Thank you  
andersoncf1
MVE Author Created May 23, 2021 13:06:57

Great article my friend! Congratulations on your dedication
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.