技术解析
操作系统:ubunt 16.04.2 网卡数量:3 个 交换机:HW S5700-52P-LI
交换机配置了 3 个 eth-trunk ,并配置为 lacp 模式 每个 eth-trunk 绑定 3 个端口; 3 台服务器上也是 3 个网口绑定 ethtool 查看 bond0 已经是 3000Mb/s 了
[问题] 目前从一台机器拷贝数据到另一台主机速度在 100MB/s 左右呢,只占用了一个端口,如何设置才能让 3 个端口同时工作,速度达到 300MB/s 左右?
主机网卡配置如下: auto eno1 iface eno1 inet manual bond-master bond0
auto eno2 iface eno2 inet manual bond-master bond0
auto eno3 iface eno3 inet manual bond-master bond0
auto bond0 iface bond0 inet static address 172.171.8.12 netmask 255.255.240.0 network 172.171.0.0 broadcast 172.171.15.255 gateway 172.171.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 221.6.4.66 #slaves eno1 eno2 eno3 bond-mode 4 bond-miimon 100 bond-lacp-rate 1 bond-slaves eno1 eno2 eno3
[ bond 信息]
[email protected]:~# ethtool bond0 Settings for bond0: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 3000Mb/s Duplex: Full Port: Other PHYAD: 0 Transceiver: internal Auto-negotiation: off Link detected: yes
[交换机配置] interface Eth-Trunk1 port link-type access mode lacp max active-linknumber 4 lacp selected speed
……………… interface GigabitEthernet0/0/25 eth-trunk 1 lacp priority 100
interface GigabitEthernet0/0/26 eth-trunk 1 lacp priority 100
interface GigabitEthernet0/0/27 eth-trunk 1 lacp priority 100
interface GigabitEthernet0/0/28 eth-trunk 1 lacp priority 100
[ ETH-trunk 信息]
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/25 Selected 1GE 100 1 305 10111100 1 GigabitEthernet0/0/27 Selected 1GE 100 2 305 10111100 1 GigabitEthernet0/0/28 Unselect 1GE 100 3 305 10100010 1 GigabitEthernet0/0/26 Selected 1GE 100 12 305 10111100 1
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/25 65535 7486-7ad7-761e 255 3 9 11111100 GigabitEthernet0/0/27 65535 7486-7ad7-761e 255 1 9 11111100 GigabitEthernet0/0/28 0 0000-0000-0000 0 0 0 10100011 GigabitEthernet0/0/26 65535 7486-7ad7-761e 255 2 9 11111100