Linux网卡绑定问题(CentOS 4 / RHEL 3)

我在CentOS 4上遇到绑定网卡的问题。看起来绑定驱动程序确实工作,但它仍然处于循环模式,我正在尝试进行主动备份。

目前的configuration是:

的ifcfg-bond0

DEVICE=bond0 IPADDR=192.168.204.18 NETMASK=255.255.255.0 ONBOOT=yes BOOTPROTO=none USERCTL=no TYPE=Bonding BONDING_OPTS="mode=1 miimon=100" 

的ifcfg-eth1的

 DEVICE=eth1 BOOTPROTO=none ONBOOT=yes TYPE=Ethernet MASTER=bond0 SLAVE=yes 

的ifcfg-ETH3

 DEVICE=eth3 ONBOOT=yes BOOTPROTO=none TYPE=Ethernet MASTER=bond0 SLAVE=yes 

cat / proc / net / bonding / bond0

 Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005) Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 0 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:17:a4:8f:94:b1 Slave Interface: eth3 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:1b:21:56:b8:69 

cat /etc/modprobe.conf

 alias eth0 tg3 alias eth1 tg3 alias eth3 e1000 alias eth2 e1000 alias bond0 bonding options bond0 mode=1 miimon=100 

我尝试将绑定信息从ifcfg-bond0移到modprobeconfiguration文件中。 它似乎是卡在RR,我正在试图进入活动备份(模式1)的状态。

任何想法会导致这个问题?

有些事情要尝试的事情:

  1. 检查dmesg的输出
  2. 你在/etc/init.d/network restart之后仍然有这种情况吗?
  3. modprobe -r绑定模块,然后重新加载。
  4. 尝试arp平与arp目标,而不是miimon也许。

从我configuration的几台机器中的一台:

[keiths @ vm-dmz-host1〜] $ cat / etc / redhat-release

CentOS 4.8(最终版)

[keiths @ vm-dmz-host1〜] $

[keiths @ myserver〜] $ uname -a

Linux myserver 2.6.9-34.ELsmp#1 SMP Wed Mar 8 00:27:03 CST 2006 i686 i686 i386 GNU / Linux

[keiths @ myserver〜] $ sudo cat / proc / net / bonding / bond0

密码:

以太网通道绑定驱动程序:v2.6.1(2004年10月29日)

绑定模式:容错(主动备份)

主奴隶:无

当前激活的从站:eth0

信息产业部状态:最多

MII轮询间隔(ms):50

Up Delay(ms):0

向下延迟(ms):0

从接口:eth0

信息产业部状态:最多

链接失败计数:0

永久硬件地址:00:0d:60:9c:35:2e

从接口:eth1

信息产业部状态:最多

链接失败计数:0

永久硬件地址:00:0d:60:9c:35:2f

[keiths @ myserver〜] $

[keiths @ myserver〜] $ sudo cat /etc/modprobe.conf

别名scsi_hostadapter megaide

别名eth0 tg3

别名eth1 tg3

别名bond0绑定

选项bond0 mode = 1 miimon = 50

别名usb-controller ohci-hcd

[keiths @ myserver〜] $

[keiths @ myserver〜] $ sudo cat / etc / sysconfig / network-scripts / ifcfg-bond0

DEVICE = bond0

IPADDR = 192.168.46.170

NETMASK = 255.255.255.224

networking= 192.168.46.160

BROADCAST = 192.168.46.191

GATEWAY = 192.168.46.161

ONBOOT = YES

BOOTPROTO =无

IPV6INIT =无

USERCTL =无

[keiths @ myserver〜] $

[keiths @ myserver〜] $ sudo cat / etc / sysconfig / network-scripts / ifcfg-eth0

DEVICE = eth0的

BOOTPROTO =无

ONBOOT = YES

TYPE =以太网

USERCTL =无

MASTER = bond0

SLAVE = YES

HWADDR = 00:0D:60:9C:35:2E

[keiths @ myserver〜] $

[keiths @ myserver〜] $ sudo cat / etc / sysconfig / network-scripts / ifcfg-eth1

DEVICE = eth1的

BOOTPROTO =无

ONBOOT = YES

TYPE =以太网

USERCTL =无

MASTER = bond0

SLAVE = YES

HWADDR = 00:0D:60:9C:35:2F

[keiths @ myserver〜] $