Gentoo Archives: gentoo-hardened

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] bonding module auto-loading
Date: Sat, 21 May 2011 21:29:37
Message-Id: 4DD82E3F.7@gentoo.org
In Reply to: Re: [gentoo-hardened] bonding module auto-loading by Ed W
1 On 05/21/2011 08:36 AM, Ed W wrote:
2 > Hi
3 >
4 >> Compiling it as a module is the way the devs recommend doing it.
5 >
6 > Which devs?
7 >
8 > Bond should support full configuration through sysfs for some years now?
9 > There is no reason that I'm aware of to need it to be a module?
10 >
11 >> I've
12 >> been compiling it into my kernels, but then I'm stuck with what I get,
13 >> as you were.
14 >
15 > It *should* be configurable completely via sysfs (and I think this is
16 > now the preferred method?). There are some caveats on the order you do
17 > things though, eg you need the interface down to change most of the
18 > settings?
19 >
20 >> I want the round-robin, what's bothering me is the miimon
21 >> which I can't change from 0 which means no mii mon which is not good.
22 >
23 > # cat /sys/class/net/bond0/bonding/miimon
24 > 100
25 > # cat /sys/class/net/bond0/bonding/mode
26 > 802.3ad 4
27 >
28 > # cat /sys/class/net/bond1/bonding/mode
29 > balance-rr 0
30 > # cat /sys/class/net/bond1/bonding/miimon
31 > 100
32 >
33 > Not sure what values are sensible though?
34 >
35 > Good luck
36 >
37 > Ed W
38 >
39
40 In answer to the first question, I was getting my info from memory. I
41 remember mpagano quoting it in response to a problem someone else had
42 with compiling it in. I remember him saying that using the module was
43 the only way of setting the parameters. I might ask him about it later.
44
45 As for /sys, thanks for the info! It worked. Perhaps my info comes
46 from the pre /sys days?
47
48 100 is reasonable.
49
50 --
51 Anthony G. Basile, Ph.D.
52 Gentoo Linux Developer [Hardened]
53 E-Mail : blueness@g.o
54 GnuPG FP : 8040 5A4D 8709 21B1 1A88 33CE 979C AF40 D045 5535
55 GnuPG ID : D0455535