QUOTE:原帖由 tankxu 于 2008-9-8 10:07 发表

机器采用主备模式,现在奇怪的是改了/etc/modprobe.conf,未能生效Bonding Mode: load balancing (round-robin),怎么该都是均衡模式,可能原来就是这个问题,
还需要改什么文件才能切换到主备模式,多谢了

你修改完/etc/modprobe.conf重起主机系统了吗?
“mode”设为1时,Bonding提供冗余功能(Fault-Tolerance (active-backup)),即Bonding工作在主备模式下,同时只有一块网卡工作,另一块作为备份。当主网卡失效时,系统会按照文件/etc/rc.d/rc.local里指定的顺序启动备用网卡工作,保证服务器不会出现长时间的网络中断。
“mode”设为0时,Bonding工作在负载均衡(Load Balancing (round-robin))方式下,即两块网卡同时工作,这时理论上Bonding能提供两倍的带宽。在这种情况下如果一块网卡失效,仅仅会使服务器出口带宽下降,并不会影响网络使用。
通过ifconfig命令查看网卡的配置信息,“mode=0”和“mode=1”的区别在于eth1是工作在“SLAVE” 状态,而非“NOARP”。
QUOTE:cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.1.2 (January 20, 2007)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 3
Permanent HW addr: 00:21:5a:44:66:b0
Slave Interface: eth1
MII Status: up
Link Failure Count: 5
Permanent HW addr: 00:21:5a:44:66:a4
你把你修改后的/etc/modprobe.conf再贴出来看看,再cat /proc/net/bonding/bond0看看。