我已经用balance-alb (mode=6)选项配置了通道绑定(在RHEL/CentOS上):
BONDING_OPTS="mode=balance-alb miimon=100 updelay=200 downdelay=200"
它工作得很好,根据/proc/net/bonding/bond0的说法,主动从是eth1.
[root@baba ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)
Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:19:00:00:00:fb
Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:06:11:11:11:3b(我有意将MAC的中间部分替换为00和11 )
现在,根据ifconfig,eth0和eth1的MAC地址分配是不同的(与上述输出不同)--它们是交换的。
[root@baba ~]# ifconfig | sed -n '/^[a-z]*[0-9]/p'
bond0 Link encap:Ethernet HWaddr 00:19:00:00:00:FB
eth0 Link encap:Ethernet HWaddr 00:06:11:11:11:3B
eth1 Link encap:Ethernet HWaddr 00:19:00:00:00:FB 有谁知道我为什么看到这个或者它是如何工作的吗?提前谢谢。干杯!!
发布于 2013-05-15 13:25:00
1) eth0加入该键,该键取0‘S MAC地址。
( 2) eth1加入键。
3)由于某种原因,eth1成为主动奴隶,并出现了以下行为:
If the receiving slave fails, another slave
takes over the MAC address of the failed
receiving slave.来源:https://www.kernel.org/doc/Documentation/networking/bonding.txt
MAC地址的改变似乎如预期的那样起作用。
https://serverfault.com/questions/423361
复制相似问题