华为 手动配置链路聚合

一、组网需求

1、如图所示,SwitchA和SwitchB通过以太链路分别都连接VLAN10和VLAN20,且SwitchA和SwitchB之间有较大的数据流量。
用户希望SwitchA和SwitchB之间能够提供较大的链路带宽来使相同VLAN间互相通信。

2、网络拓扑


3、配置思路

采用如下的思路配置负载分担链路聚合:
创建Eth-Trunk接口并加入成员接口,实现增加链路带宽。
创建VLAN并将端口加入VLAN。
配置负载分担方式,实现流量在Eth-Trunk各成员接口间的负载分担,增加可靠性。

二、操作步骤

1、创建eth-trunk并加入成员接口

第一种加入方法:
<Huawei>system-view
[Huawei]sysname SWA
[SWA]interface Eth-Trunk 1
[SWA-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/2
[SWA-Eth-Trunk1]q
第二种加入方法:
<Huawei>system-view
[Huawei]sysname SWB
[SWB]interface Eth-Trunk 1
[SWB-Eth-Trunk1]q
[SWB]interface  GigabitEthernet  0/0/1
[SWB-GigabitEthernet0/0/1]eth-trunk 1
[SWB-GigabitEthernet0/0/1]q
[SWB]interface  GigabitEthernet  0/0/2
[SWB-GigabitEthernet0/0/2]eth-trunk 1
[SWB-GigabitEthernet0/0/2]q

2、创建vlan并将端口加入vlan,SWB同SWA配置相似

[SWA]vlan  batch 10 20
[SWA]interface  GigabitEthernet  0/0/4
[SWA-GigabitEthernet0/0/4]port link-type trunk 
[SWA-GigabitEthernet0/0/4]port trunk  allow-pass vlan 10
[SWA-GigabitEthernet0/0/4]q
[SWA]interface  GigabitEthernet  0/0/5
[SWA-GigabitEthernet0/0/5]port link-type trunk 
[SWA-GigabitEthernet0/0/5]port trunk allow-pass vlan 20
[SWA-GigabitEthernet0/0/5]q

3、配置eth-trunk接口允许vlan10和vlan20通过,并设置负载分担模式。SWB同SWA配置相似

[SWA]interface Eth-Trunk 1
[SWA-Eth-Trunk1]port link-type trunk 
[SWA-Eth-Trunk1]port trunk allow-pass vlan 10 20
[SWA-Eth-Trunk1]load-balance src-dst-mac 
[SWA-Eth-Trunk1]q

4、查看配置结果

[SWA]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: 2                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
GigabitEthernet0/0/1          Up          1      
GigabitEthernet0/0/2          Up          1 



猜你喜欢

转载自blog.csdn.net/tladagio/article/details/80852389