EtherChannel
- 也叫Port-Channel,把多个物理端口组合形成1个逻辑端口
- 增加冗余,增加带宽(单位时间内的吞吐量,而不是速率),消除生成树
- 可以配置成2层或3层(赋予IP地址)
Dynamic vs Static EtherChannel
- 动态
- LACP —— 公开的 Active 和 Passive,建议使用
- PagP —— 思科私有,Desirable 和 Auto
- 静态
- ON 不跑协议
EtherChannel Load balance
- 不是 Round Robin,而是根据指定的信息(比如 src-dest-ip-mac-port) 进行hash计算,结果一致的始终走其中同1条线路。新增的才会走第2条线路
- 物理接口的属性必须相同(Vlan, Speed, Duplex, MTU) ,建议按照2的次方个接口进行绑定
- show etherchannel port 可以用于查看负载
Minimum & Maximum Number of Member Interface
- Minimum :
- 至少有几条物理链路up,EtherChannel 才能Up
- port-channel min-links
- Max:
- 最多有几条线路处于工作状态,多余的进入Hot Standby状态
- lacp max-bundle
LACP System Priority
LACP Interface Priority
- 配置 Lacp max-bundle 后,谁来决定哪些进入转发,哪些进入Hot Standby,由 System Priority 和 Port Priority 共同决定
LACP Fast
- 原始LACP协议每隔30s 发送1次数据包,连续3个LACP收不到之后才会认为链路断掉。新的标准修正成为每隔1s,需要通过命令启用,进入接口下执行: lacp rate fast