配置手工模式链路聚合
链路聚合
指将多个物理端口汇聚在一起,形成一个逻辑端口,以实现出/入流量吞吐量在各成员端口的负荷分担,交换机根据用户配置的端口负荷分担策略决定网络封包从哪个成员端口发送到对端的交换机。
实验环境:华为ENSP
实验拓扑:
具体实验内容
①在LSW1和LSW2上分别创建Eth-Trunk接口,并加入成员接口E0/0/10、E0/0/20,以增加链路带宽;
②在LSW1和LSW2上分别创建VLAN10、VLAN20,并将接口E0/0/1加入VLAN10、接口E0/0/2加入VLAN20;
③在LSW1和LSW2上均配置负载分担为源MAC地址与目的地址方式,实现流量在Eth-Trunk各成员接口间的负载分担,增加可靠性。
配置
LSW1
<Huawei>sys
[Huawei]sysn LSW 1
[LSW 1]vlan batch 10 20
[LSW 1]int e0/0/1
[LSW 1-Ethernet0/0/1]port link-type access
[LSW 1-Ethernet0/0/1]port default vlan 10
[LSW 1-Ethernet0/0/1]stp edged-port enable
[LSW 1-Ethernet0/0/1]stp bpdu-filter enable
[LSW 1-Ethernet0/0/1]q
[LSW 1]int e0/0/2
[LSW 1-Ethernet0/0/2]port link-type access
[LSW 1-Ethernet0/0/2]port default vlan 20
[LSW 1-Ethernet0/0/2]stp edged-port enable
[LSW 1-Ethernet0/0/2]stp bpdu-filter enable
[LSW 1-Ethernet0/0/2]q
[LSW 1]int
[LSW 1]interface eth-trunk 1 //创建Eth-trunk接口
[LSW 1-Eth-Trunk1]trunkport e0/0/10 //将E0/0/10加入Eth-trunk接口
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW 1-Eth-Trunk1]trunkport e0/0/20 //将E0/0/20加入Eth-trunk接口
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW 1-Eth-Trunk1]port link-type trunk
[LSW 1-Eth-Trunk1]port trunk allow-pass vlan 10 20
[LSW 1-Eth-Trunk1]load-balance src-dst-mac //配置负载分担为源MAC地址与目的地址方式
[LSW 1-Eth-Trunk1]q
查看配置结果
LSW2
LSW2的配置与LSW1 的配置基本一致
查看配置结果
到这里,手工模式的链路聚合配置就基本完成了,实现了e0/0/10与e0/0/20的链路聚合。