两台交换机,配置链路聚合:

1、禁止自动协商速率,配置固定速率
- int G0/0/1
- undo negotiation auto
- speed 100
-
- int G0/0/2
- undo negotiation auto
- speed 100
2、配置eth-trunk
- int eth-trunk 1
- mode manual | lacp-static
-
- int G0/0/1
- eth-trunk 1
-
- int G0/0/2
- eth-trunk 1
-
- dis eth-trunk 1
这里,如果是手动,就不写mode了,默认就是手动,静态的就是写一条 mode lacp-static
3、配置主动端和优先级:
- lacp priority 100
-
- int G0/0/1
- lacp priority 100
-
- int G0/0/2
- lacp priority 100
4、验证
用跟两台交换机上连接的PC,互ping,如果通了就说明eth-trunk配置成功
*tips:ENSP上,给PC上改一下MAC地址,可以更方便地看MAC表项