华为交换机链路聚合
链路聚合好处:
1、提高带宽
2、链路冗余
SW_2:
<Huawei>sys
[Huawei]sys SW_2
[SW_2]vlan batch 10 20
[SW_2]int g0/0/4
[SW_2-GigabitEthernet0/0/4]port link-type access
[SW_2-GigabitEthernet0/0/4]port default vlan 10
[SW_2-GigabitEthernet0/0/1]int g0/0/5
[SW_2-GigabitEthernet0/0/5]port link-type access
[SW_2-GigabitEthernet0/0/5]port default vlan 20
[SW_2-GigabitEthernet0/0/5]quit
[SW_2]int Eth-Trunk 1 //创建编号为1的聚合口
[SW_2-Eth-Trunk1]port link-type trunk
[SW_2-Eth-Trunk1]port trunk allow-pass vlan all
[SW_2-Eth-Trunk1]int g0/0/1
[SW_2-GigabitEthernet0/0/1]eth-trunk 1 // g0/0/1加入编号为1的聚合口
[SW_2-GigabitEthernet0/0/1]int g0/0/2
[SW_2-GigabitEthernet0/0/2]eth-trunk 1
[SW_2-GigabitEthernet0/0/2]int g0/0/3
[SW_2-GigabitEthernet0/0/3]eth-trunk 1
SW_3:
<Huawei>sys
[Huawei]sys SW_3
[SW_3]vlan batch 10 20
[SW_3]int vlan 10
[SW_3-Vlanif10]ip add 192.168.1.254 24
[SW_3-Vlanif10]int vlan 20
[SW_3-Vlanif20]ip add 192.168.2.254 24
[SW_3-GigabitEthernet0/0/1]quit
[SW_3]int Eth-Trunk 1
[SW_3-Eth-Trunk1]port link-type trunk
[SW_3-Eth-Trunk1]port trunk allow-pass vlan all
[SW_3-Eth-Trunk1]int g0/0/1
[SW_3-GigabitEthernet0/0/1]eth-trunk 1
[SW_3-GigabitEthernet0/0/1]int g0/0/2
[SW_3-GigabitEthernet0/0/2]eth-trunk 1
[SW_3-GigabitEthernet0/0/2]int g0/0/3
[SW_3-GigabitEthernet0/0/3]eth-trunk 1
[SW_3-GigabitEthernet0/0/3]
一条链路1G,汇聚后变3G
Ping测试
模拟g0/0/1的链路出现故障后,再Ping
[SW_2]int g0/0/1
[SW_2-GigabitEthernet0/0/1]shutdown