如何将 Linux 绑定接口设置为千兆

Kyl*_*ndt 5 networking linux bonding

我已启用 Linux 主动备份模式绑定。每个接口都是千兆接口,但是bond接口好像最后是100兆:

bonding: bond0: Warning: failed to get speed and duplex from eth1, assumed to be 100Mb/sec and Full.
...
bnx2: eth0 NIC Link is Up, 1000 Mbps full duplex, receive & transmit flow control ON  
... 
bonding: bond0: backup interface eth1 is now up
Run Code Online (Sandbox Code Playgroud)

ethtool 显然无法提供有关债券的信息:

sudo ethtool bond0
Settings for bond0:
No data available
Run Code Online (Sandbox Code Playgroud)

那么这是否意味着我的运行速度为 100 或 1000 兆位(我猜是 1000)?如果只有 100,我需要在 ifcfg 脚本或 modprobe 绑定选项中设置哪些选项才能使其为 1000?

Kyl*_*ndt 2

看起来我已经 1000 了,开发者邮件列表上的某个人很友善地解释了这一点

...
Later, when the slave device asserts carrier up, bonding will
receive a notifiation, and will update the speed and duplex information
(quietly).
Run Code Online (Sandbox Code Playgroud)