From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QNtjs-00071z-OK for garchives@archives.gentoo.org; Sat, 21 May 2011 21:29:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D23B1C084; Sat, 21 May 2011 21:27:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 224271C084 for ; Sat, 21 May 2011 21:27:31 +0000 (UTC) Received: from [192.168.3.7] (cpe-67-242-155-38.buffalo.res.rr.com [67.242.155.38]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: blueness) by smtp.gentoo.org (Postfix) with ESMTPSA id 3A1411B4019 for ; Sat, 21 May 2011 21:27:30 +0000 (UTC) Message-ID: <4DD82E3F.7@gentoo.org> Date: Sat, 21 May 2011 17:27:27 -0400 From: "Anthony G. Basile" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110501 Lightning/1.0b3pre Lanikai/3.1.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-hardened@lists.gentoo.org Reply-to: gentoo-hardened@lists.gentoo.org MIME-Version: 1.0 To: gentoo-hardened@lists.gentoo.org Subject: Re: [gentoo-hardened] bonding module auto-loading References: <004082ddb0eaa701d6750c9466c75cab.squirrel@atoth.sote.hu> <4DD656B0.90004@gentoo.org> <4DD7B1BE.8020101@wildgooses.com> In-Reply-To: <4DD7B1BE.8020101@wildgooses.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 92bb7960f1ae72288b1e9cf113e435b3 On 05/21/2011 08:36 AM, Ed W wrote: > Hi > >> Compiling it as a module is the way the devs recommend doing it. > > Which devs? > > Bond should support full configuration through sysfs for some years now? > There is no reason that I'm aware of to need it to be a module? > >> I've >> been compiling it into my kernels, but then I'm stuck with what I get, >> as you were. > > It *should* be configurable completely via sysfs (and I think this is > now the preferred method?). There are some caveats on the order you do > things though, eg you need the interface down to change most of the > settings? > >> I want the round-robin, what's bothering me is the miimon >> which I can't change from 0 which means no mii mon which is not good. > > # cat /sys/class/net/bond0/bonding/miimon > 100 > # cat /sys/class/net/bond0/bonding/mode > 802.3ad 4 > > # cat /sys/class/net/bond1/bonding/mode > balance-rr 0 > # cat /sys/class/net/bond1/bonding/miimon > 100 > > Not sure what values are sensible though? > > Good luck > > Ed W > In answer to the first question, I was getting my info from memory. I remember mpagano quoting it in response to a problem someone else had with compiling it in. I remember him saying that using the module was the only way of setting the parameters. I might ask him about it later. As for /sys, thanks for the info! It worked. Perhaps my info comes from the pre /sys days? 100 is reasonable. -- Anthony G. Basile, Ph.D. Gentoo Linux Developer [Hardened] E-Mail : blueness@gentoo.org GnuPG FP : 8040 5A4D 8709 21B1 1A88 33CE 979C AF40 D045 5535 GnuPG ID : D0455535