bond聚合端口提升带宽
# 对端是华为,做了eth-trunk,聚合3个千兆端口,配置没问题,但用iperf3做性能测试只有千兆,本应3000Mb的,后面发现是bound配置问题
# 查看绑定状态,layer2是基于MAC地址哈希,对交换机来说也是基于MAC或IP的哈希值选择转发端口,怎么搞都上不去的原因就在这
cat /proc/net/bonding/bond0

#修改转发哈希策略
nmcli con modify bond0 bond.options"mode=802.3ad,miimon=100,lacp_rate=fast,xmit_hash_policy=layer3+4"

# 3个千兆客户端同时并发测试
# 服务端 iperf3 -s -p 5201 & iperf3 -s -p 5202 & iperf3 -s -p 5203
# 客户端 iperf3 -c 服务端IP -p 5201 -P线程数
# 看看交换机信息,是不是满血复活了

浙公网安备 33010602011771号