文章目录
1、拓扑图
2、任务描述
- 在SwA和SwB上的G0/0/1-G0/0/2端口设置链路聚合,编号为1
- 链路聚合采用lacp模式,负载分担方式为dst-ip方式
3、SwA配置
- 进入系统视图:system-view
- 修改设备名字:[Huawei]sysname SwA
- 进入Eth-trunk接口:[SwA]int Eth-Trunk 1
- 修改模式:[SwA-Eth-Trunk1]mode lacp-static
- 设置负载分担方式为dst-ip方式:[SwA-Eth-Trunk1]load-balance dst-ip
- 设置传输模式:[SwA-Eth-Trunk1]port link-type trunk
- 允许通过的vlan:[SwA-Eth-Trunk1]port trunk allow-pass vlan all
- 返回系统视图:[SwA-Eth-Trunk1]quit
- 进入接口g0/0/1:[SwA]int g0/0/1
- 将接口加入Eth-trunk 1:[SwA-GigabitEthernet0/0/1]eth-trunk 1
- 进入接口g0/0/2:[SwA-GigabitEthernet0/0/1]int g0/0/2
- 将接口加入Eth-trunk 1:[SwA-GigabitEthernet0/0/2]eth-trunk 1
- 返回用户视图:[SwA-Eth-Trunk1]return
- 保存:save 确认保存:Are you sure to continue?[Y/N]y
4、SwB配置
- 进入系统视图:system-view
- 修改设备名字:[Huawei]sysname SwB
- 进入Eth-trunk接口:[SwB]int Eth-Trunk 1
- 修改模式:[SwB-Eth-Trunk1]mode lacp-static
- 设置负载分担方式为dst-ip方式:[SwB-Eth-Trunk1]load-balance dst-ip
- 设置传输模式:[SwB-Eth-Trunk1]port link-type trunk
- 允许通过的vlan:[SwB-Eth-Trunk1]port trunk allow-pass vlan all
- 返回系统视图:[SwB-Eth-Trunk1]quit
- 进入接口g0/0/1:[SwB]int g0/0/1
- 将接口加入Eth-trunk 1:[SwB-GigabitEthernet0/0/1]eth-trunk 1
- 进入接口g/0/0/2:[SwB-GigabitEthernet0/0/1]int g0/0/2
- 将接口加入Eth-trunk 1: [SwB-GigabitEthernet0/0/2]eth-trunk 1
- 返回用户视图:[SwB-GigabitEthernet0/0/2]return
- 保存:save 确认保存:Are you sure to continue?[Y/N]y
5、查看配置
- SwA:
- SwB: