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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


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

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

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 ~ #
Comment 1 Marc Schiffbauer gentoo-dev 2013-05-07 23:22:41 UTC
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.
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."
/usr/src/linux/Documentation/networking/bonding.txt
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 ***