Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468964 - sys-apps/openrc-0.11.8: bonding interface config: setting arp_interval does not work
Summary: sys-apps/openrc-0.11.8: bonding interface config: setting arp_interval does n...
Status: RESOLVED DUPLICATE of bug 447790
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
Depends on:
Reported: 2013-05-07 23:16 UTC by Marc Schiffbauer
Modified: 2013-08-28 16:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

fix (file_468964.txt,560 bytes, text/plain)
2013-05-07 23:22 UTC, Marc Schiffbauer

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2013-05-07 23:16:32 UTC
Problem seems to be that arp_interval must not be set before mode.

Kernel: 3.8.6-hardened

slaves_bond1="eth1 eth3"

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: +
 *     Setting miimon: 100
 *     Setting mode: balance-rr
 *     Adding slaves to bond1 ...
 *       eth1 eth3 [ ok ]
 * ...  [ ok ]
host ~ # cat /sys/class/net/bond1/bonding/arp_interval 
host ~ # echo 1000 >/sys/class/net/bond1/bonding/arp_interval
host ~ # cat /sys/class/net/bond1/bonding/arp_interval 
host ~ #
Comment 1 Marc Schiffbauer gentoo-dev 2013-05-07 23:22:41 UTC
Created attachment 347668 [details]

I think I found the bug:

There is a wrong logic in /lib64/rc/net/

This patch fixes it for me.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2013-05-10 17:32:55 UTC
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."
Comment 3 Marc Schiffbauer gentoo-dev 2013-05-10 22:03:11 UTC
Yoou are right about bonding configuration. 

How about detecting usage of both and show a warning or error?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-08-28 16:47:06 UTC
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 ***