Problem seems to be that arp_interval must not be set before mode. Kernel: 3.8.6-hardened net-Config: ---------------------------- slaves_bond1="eth1 eth3" config_bond1="172.16.4.1/24" mode_bond1="balance-rr" miimon_bond1="100" arp_interval_bond1="1000" arp_ip_target_bond1="+172.16.4.2" ---------------------------- host ~ # /etc/init.d/net.bond1 -D restart * Bringing down interface bond1 * Caching network module dependencies * Removing slaves from bond1 ... * eth1 eth3 [ ok ] * Bringing up interface bond1 * Setting mode: balance-rr * Setting miimon: 100 * Setting arp_interval: 1000 * Setting arp_ip_target: +172.16.4.2 * Setting miimon: 100 * Setting mode: balance-rr * Adding slaves to bond1 ... * eth1 eth3 [ ok ] * 172.16.4.1/24 ... [ ok ] host ~ # cat /sys/class/net/bond1/bonding/arp_interval 0 host ~ # echo 1000 >/sys/class/net/bond1/bonding/arp_interval host ~ # cat /sys/class/net/bond1/bonding/arp_interval 1000 host ~ #
Created attachment 347668 [details] fix I think I found the bug: There is a wrong logic in /lib64/rc/net/bonding.sh: This patch fixes it for me.
There can be either miimon or arp_interval/arp_ip_target but not both. You have to choose only one method so I don't think that this is a bug actually. "ARP monitoring should not be used in conjunction with miimon." /usr/src/linux/Documentation/networking/bonding.txt
Yoou are right about bonding configuration. How about detecting usage of both and show a warning or error?
Your patch is already included in bug e0bbe8d0bde82b14aa9a867707298c2040442151 per bug 447790. As for miimon+arp together, i've added a note in git. *** This bug has been marked as a duplicate of bug 447790 ***