问题描述
S5700交换机的两个端口配置为链路聚合Eth-Trunk 0;接口下未做其他的配置,为默认配置;但是查看两个端口状态,却发现这两个端口状态的流量相差较大,负载不均衡。
处理过程
在S5700交换机Eth-Trunk0上更改load-balance方式:
[Huawei-Eth-Trunk0]load-balance ?
dst-ip According to destination IP hash arithmetic
dst-mac According to destination MAC hash arithmetic
src-dst-ip According to source/destination IP hash arithmetic
src-dst-mac According to source/destination MAC hash arithmetic
src-ip According to source IP hash arithmetic
src-mac According to source MAC hash arithmetic
修改为
[Huawei-Eth-Trunk0]load-balance dst-ip
根因
现场为三层流量转发,而链路聚合端口默认情况下是根据mac地址hash计算来负载分担的。需要更改默认的load-balance方式
建议与总结
交换机链路聚合端口默认情况下是根据mac地址hash计算来负载分担的。如果为三层流量转发,需要更改默认的load-balance方式