Huawei Switch Link Aggregation

Preface
As the network scale continues to expand, users have higher and higher requirements on the bandwidth and reliability of backbone links. In the traditional technology, it is common to replace a high-speed interface board or a device supporting a high-speed interface board to increase bandwidth, but this solution requires high costs and is not flexible enough.
Link aggregation technology can increase link bandwidth by bundling multiple physical interfaces into one logical interface without hardware upgrade. While achieving the purpose of increasing the bandwidth, link aggregation adopts the mechanism of backup links, which can effectively improve the reliability of links between devices.

Application Scenarios of Link Aggregation
In an enterprise network, the traffic of all devices will be aggregated to the core layer before being forwarded to other networks, and then forwarded by the core area devices to other networks or to the external network; therefore, the core layer devices are responsible for
data Congestion is prone to occur during high-speed switching;
deploying link aggregation at the core layer can improve the data throughput of the entire network and solve the congestion problem.
Link aggregation is generally deployed on core nodes to improve the data throughput of the entire network

Manual load sharing mode

Adopt CE12800 core switch (topology diagram)

1. CE1 switch settings

<HUAWEI>sys
[~HUAWEI]un in en
[*HUAWEI]sys CE1
[*HUAWEI]commit

# 批量启用端口 
[~CE1]int range g1/0/1 to g1/0/4
[~CE1-port-group]undo shutdown   
[*CE1-port-group]quit

# g1/0/1切换三层接口并设置IP
[*CE1]int g1/0/1
[*CE1-GE1/0/1]undo portswitch
[*CE1-GE1/0/1]ip addr 192.168.10.254 24

# 创建 eth-trunk1 接口
[*CE1-GE1/0/1]int eth-trunk 1

# eth-trunk1 接口切换为三层接口
[*CE1-Eth-Trunk1]undo portswitch

# 把g2-4接口加入到eth-trunk1接口
[*CE1-Eth-Trunk1]trunkport g 1/0/2 to 1/0/4

# eth-trunk 接口设置 IP
[*CE1-Eth-Trunk1]ip addr 10.0.10.1 24
[*CE1-Eth-Trunk1]quit

# 配置静态路由
[*CE1]ip route-static 192.168.20.0 24 10.0.10.2
[*CE1]commit

2. CE2 switch settings

<HUAWEI>sys
[~HUAWEI]un in en
[*HUAWEI]sys CE2
[*HUAWEI]commit

# 批量启用端口 
[~CE2]int range g1/0/1 to g1/0/4
[~CE2-port-group]undo shutdown   
[*CE2-port-group]quit

# g1/0/1切换三层接口 设置IP
[*CE2]int g1/0/1
[*CE2-GE1/0/1]undo portswitch
[*CE2-GE1/0/1]ip addr 192.168.20.254 24

# 创建 eth-trunk 接口
[*CE2-GE1/0/1]int eth-trunk 1

# eth-trunk1接口切换三层接口
[*CE2-Eth-Trunk1]undo portswitch

# 把g2-4接口加入到eth-trunk1接口
[*CE2-Eth-Trunk1]trunkport g 1/0/2 to 1/0/4

# eth-trunk 接口设置 IP
[*CE2-Eth-Trunk1]ip addr 10.0.10.2 24
[*CE2-Eth-Trunk1]quit

# 配置静态路由
[*CE2]ip route-static 192.168.10.0 24 10.0.10.1
[*CE2]commit

3. View eth-trunk

[~CE1]dis eth-trunk 1
Eth-Trunk1's state information is:
Working Mode: Normal        Hash Arithmetic: According to flow
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 32
Operating Status: up        Number of Up Ports in Trunk: 3
--------------------------------------------------------------------------------
PortName                      Status      Weight
GE1/0/2                       Up          1          
GE1/0/3                       Up          1          
GE1/0/4                       Up          1 

4. Verify network connectivity

PC1>ping 192.168.20.1

Ping 192.168.20.1: 32 data bytes, Press Ctrl_C to break
From 192.168.20.1: bytes=32 seq=1 ttl=126 time=16 ms
From 192.168.20.1: bytes=32 seq=2 ttl=126 time=15 ms
From 192.168.20.1: bytes=32 seq=3 ttl=126 time=31 ms
From 192.168.20.1: bytes=32 seq=4 ttl=126 time=16 ms
From 192.168.20.1: bytes=32 seq=5 ttl=126 time=16 ms

--- 192.168.20.1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 15/18/31 ms

Link Aggregation in LACP Mode

Networking Requirements
As shown in the figure, configure a link aggregation group in LACP mode on two Switch devices to improve the bandwidth and reliability between the two devices. The specific requirements are as follows: The
two active links have the capability of load sharing.
The link between the two devices has a redundant backup link. When the active link fails, the backup link replaces the failed link to maintain the reliability of data transmission.

Using S5700 Layer 3 Switches (Topology Diagram)

Configuration idea

Configure link aggregation in LACP mode as follows:
Create an Eth-Trunk and configure the Eth-Trunk to work in LACP mode to implement link aggregation.
Add member interfaces to the Eth-Trunk.

Description:
Configure the system priority, determine the active end, and select the active interface according to the interface of the active end device.
Configure the upper threshold of active interfaces to improve network reliability while guaranteeing bandwidth.
Configure the interface priority to determine the active link interface, and the interface with higher priority will be selected as the active interface. 

1. SW1 setting

<Huawei>sys
[Huawei]un in en
[Huawei]sys SW1

# 批量创建 vlan
[SW1]vlan batch 10 100

# 设置网关IP
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]p l a
[SW1-GigabitEthernet0/0/1]p d v 10
[SW1-GigabitEthernet0/0/1]int vlanif 10
[SW1-Vlanif10]ip addr 192.168.10.254 24
[SW1-Vlanif10]quit

# 创建 eth-trunk1 接口
[SW1]int eth-trunk 1

# lacp 模式
[SW1-Eth-Trunk1]mode lacp

# 配置活动接口上限阈值为2
[SW1-Eth-Trunk1]max active-linknumber 2

# 把g3-g5接口加入eth-trunk1接口
[SW1-Eth-Trunk1]trunkport g 0/0/3 to 0/0/5
[SW1-Eth-Trunk1]p l a
[SW1-Eth-Trunk1]p d v 100
[SW1-Eth-Trunk1]quit

# 配置系统优先级为100,使其成为LACP主动端
[SW1]lacp priority 100

# 配置接口优先级确定活动链路
[SW1]int g0/0/3
[SW1-GigabitEthernet0/0/3]lacp priority 100
[SW1-GigabitEthernet0/0/3]int g0/0/4
[SW1-GigabitEthernet0/0/4]lacp priority 100
[SW1-GigabitEthernet0/0/4]quit

# eth-trunk 1 设置 IP
[SW1]int vlanif 100
[SW1-Vlanif100]ip addr 10.0.10.1 24

# 静态路由
[SW1-Vlanif100]ip route-static 192.168.20.0 24 10.0.10.2

2. SW2 setting

<Huawei>sys
[Huawei]un in en
[Huawei]sys SW2

# 批量创建 vlan
[SW2]vlan batch 20 100

# 设置网关 IP
[SW2]int g0/0/1
[SW2-GigabitEthernet0/0/1]p l a
[SW2-GigabitEthernet0/0/1]p d v 20
[SW2-GigabitEthernet0/0/1]int vlanif 20
[SW2-Vlanif20]ip addr 192.168.20.254 24

# 创建 eth-trunk1 接口
[SW2-Vlanif20]int eth-trunk 1

# 设置 lacp 模式
[SW2-Eth-Trunk1]mode lacp

# 把g3-g5接口加到eth-trunk1接口
[SW2-Eth-Trunk1]trunkport g 0/0/3 to 0/0/5
[SW2-Eth-Trunk1]p l a
[SW2-Eth-Trunk1]p d v 100
[SW2-Eth-Trunk1]quit

# 设置eth-trunk1接口IP
[SW2]int vlanif 100
[SW2-Vlanif100]ip addr 10.0.10.2 24

# 静态路由
[SW2-Vlanif100]ip route-static 192.168.10.0 24 10.0.10.1

3. View link aggregation

  • Switch SW1 can see System Priority: 100
  • Max Active-linknumber: 2
  • GigabitEthernet0/0/3:Selected,GigabitEthernet0/0/4:Selected
[SW1]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 100        System ID: 4c1f-cc9a-3416                         
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/3   Selected 1GE      100     4      305     10111100  1    # 默认选中
GigabitEthernet0/0/4   Selected 1GE      100     5      305     10111100  1    # 默认选中     
GigabitEthernet0/0/5   Unselect 1GE      32768   6      305     10100000  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/3   32768    4c1f-cc90-16c1  32768   4      305     10111100
GigabitEthernet0/0/4   32768    4c1f-cc90-16c1  32768   5      305     10111100
GigabitEthernet0/0/5   32768    4c1f-cc90-16c1  32768   6      305     10110000
  • The SW2 switch can see System Priority: 32768
  • Max Active-linknumber: 8 #S5700 can configure 8 by default
  • GigabitEthernet0/0/3:Selected,GigabitEthernet0/0/4:Selected
[SW2]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 4c1f-cc90-16c1                         
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
GigabitEthernet0/0/3   Selected 1GE      32768   4      305     10111100  1     
GigabitEthernet0/0/4   Selected 1GE      32768   5      305     10111100  1     
GigabitEthernet0/0/5   Unselect 1GE      32768   6      305     10110000  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/3   100      4c1f-cc9a-3416  100     4      305     10111100
GigabitEthernet0/0/4   100      4c1f-cc9a-3416  100     5      305     10111100
GigabitEthernet0/0/5   100      4c1f-cc9a-3416  32768   6      305     10100000

Guess you like

Origin blog.csdn.net/mshxuyi/article/details/129841604