centos6 上的绑定驱动程序坏了吗?

centos6 上的绑定驱动程序坏了吗?

我有一台安装了 CentOS6 64 位的最小安装(安装程序中的最小选项)的服务器。bonding 驱动程序似乎无法正常工作。/proc/net/bonding/bond0 的输出为:

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: None
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

如您所见,没有列出任何接口作为从属接口。bond 驱动程序选项在 /etc/modprobe.d/bonding.conf 中配置为:

alias bond0 bonding
options bond0 mode=1 primary=eth0 miimon=100

接口 eth0 和 eth4 配置如下:

DEVICE="eth0"
MASTER="bond0"
SLAVE="yes"
HWADDR="78:2B:CB:56:ED:5D"
NM_CONTROLLED="no"
ONBOOT="yes"

DEVICE="eth4"
MASTER="bond0"
SLAVE="yes"
HWADDR="00:1B:21:C9:F7:38"
NM_CONTROLLED="no"
ONBOOT="yes"

bond0 的配置如下:

DEVICE="bond0"
IPADDR="10.100.46.3"
NETMASK="255.255.254.0"
NM_CONTROLLED="no"
ONBOOT="yes"

以下是 /var/log/messages 的输出:

Dec  9 08:20:55 app2 kernel: bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details.
Dec  9 08:20:55 app2 kernel: ADDRCONF(NETDEV_UP): bond0: link is not ready
Dec  9 08:21:02 app2 kernel: ADDRCONF(NETDEV_UP): bond0: link is not ready

有人能解释一下为什么驱动程序无法启动吗?这是依赖关系问题吗?

答案1

您的日志说:

必须指定 miimon 或 arp_interval 和 arp_ip_target 模块参数

尝试将以下几行(您可以选择自己喜欢的选项)添加到您的 ifcfg-bond0:

BONDING_OPTS='miimon=1000 mode=6'

答案2

只需使用 sudo yum update 更新操作系统即可解决该问题。不幸的是,不确定是哪个部分造成的。

相关内容