操作方法:
# 创建 eth-trunk1 接口
[*CE1-GE1/0/1] int eth-trunk 1
# 把 g2-4 接口加入到 eth-trunk1 接口
[*CE1-Eth-Trunk1] trunkport g 1/0/2 to 1/0/4
在 SwitchA 上创建 Eth-Trunk1 并配置为 LACP 模式,SwitchB 的配置与 SwitchA 类似。
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface eth-trunk 1 // 创建 ID 为 1 的 Eth-Trunk 接口
[SwitchA-Eth-Trunk1] mode lacp // 配置链路聚合模式为 LACP 模式
[SwitchA-Eth-Trunk1] quit
在 SwitchA 上配置系统优先级为 100,使其成为 LACP 主动端:
[SwitchA] lacp priority 100
// 系统 LACP 优先级缺省为 32768,修改 SwitchA 的优先级大于 SwitchB 的优先级,作为主动端