Two interfaces, eth0
and eth1
are part of a network bonding bond0
on CentOS 6.
All worked well under CentOS 5, but after the upgrade to CentOS 6.6, keeping the same configuration, the network works fine but
despite setting
/etc/modprobe.d/bonding.conf
withoptions mode=1
or evenmode=active-backup
, the status from/proc/net/bonding/bond0
always showsload balancing
(round-robin), notactive-backup
as it should.doing a ping to a LAN address (that belongs to
bond0
network) for the first time after a reboot, the first frame isDUP!
(duplicated), the DUP doesn't happen anymore on further pings. Likely due to round-robin instead of active-backup
/etc/modprobe.d/bonding.conf:
alias bond0 bonding
options bond0 mode=1 miimon=100
ifcfg-bond0:
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.1.1.0
NETMASK=255.255.255.0
IPADDR=10.1.1.11
USERCTL=no
NM_CONTROLLED=no
ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:22:35:12:26:18
UUID=12fa32c2-e421-47f6-8d25-11414a664318
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
USERCTL=no
ifcfg-eth1:
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:22:35:12:26:19
UUID=12fa32c2-e421-47f6-8d25-11414a664319
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
USERCTL=no
All updates have been applied. NetworkManager is disabled.
The main problem seems now to be the mode, round-robin instead of active-backup.
mode
in the module options has a typo. I don't think it's causing your problems but thought I'd mention it.bonding.conf
, iemode=1
ormode=active-backup
, the status from/proc/net/bonding/bond0
always showsload balancing
(round-robin). I'll edit the question.