我试图在2台服务器上组合3个网卡.我试图实现3Gbps的最大吞吐量,以在服务器之间复制数据.设置很简单,我有2台服务器与3千兆网卡连接在同一个思科交换机上.服务器1的端口1-2-3和服务器2的端口4-5-6.我的接口配置如下:
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet manual
- bond-master bond0
- auto eth1
- iface eth1 inet manual
- bond-master bond0
- auto eth2
- iface eth2 inet manual
- bond-master bond0
- auto bond0
- iface bond0 inet static
- address 192.168.1.11
- netmask 255.255.255.0
- gateway 192.168.1.1
- bond-miimon 100
- bond-mode 802.3ad
- #bond-downdelay 200
- #bond-updelay 200
- bond-lacp-rate 1
- # tried bond with slaves and no slaves interfaces
- bond-slaves eth0 eth1 eth2
- # bond-slaves none
我在这些卡上尝试了多种配置,但我总是最终只使用1张网卡.
我用iperf和netcat测试了性能
- # server-1
- iperf -s
- # server-2
- iperf -c 192.168.1.10
- # Wait for trafic
- nc.traditional -l -p 5000 | pv > /dev/null
- # Push trafic
- dd if=/dev/zero | pv | nc.traditional 192.168.1.11 5000
我们还在Cisco交换机上尝试了许多配置,没有端口通道和端口通道,当时只使用了1个网卡.如果我们单独测试每张卡,它们以1Gbps的速度工作.
我还可以说在/ proc / net / bonding / bond0中,模式显示802.3ad,LACP速率显示为FAST.我没有链接计数失败,并显示3个界面.我还用ethtool验证每个eth接口,它们看起来很好.
我按照本指南设置了https://help.ubuntu.com/community/UbuntuBonding并使用modprobe绑定启用了内核中的绑定模块,当我使用lsmod验证绑定模块是否启动时,是的,它在列表中.
我们缺少什么让这个工作?