Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an old 2.4 kernel based linux device using NIC Bonding. Instead of having the NIC Bonding module build as a module and modprobe'ed into the system, its compiled directly into the kernel. I'd like to modify the module parameters to add mode=1 miimon=100 in order to get it to not use round-robbin packet sending, but all of the examples I'm finding seem to assume the module is not compiled into the kernel, or just don't seem to work for me.

So far I've tried modifying my /etc/modules.conf file to try adding

alias bond0 bonding
options bond0 mode=1 miimon=100
options bonding mode=1 miimon=100

Based on something else I found on line I've tried adding bond0.mode=1 and bonding.mode=1 to my kernel commandline in grub, but regardless, when I boot up and check 'cat /proc/net/bonding/bond0' I always see staring back at me this line:

Bonding Mode: load balancing (round-robin)

I've tried looking for a setting to change in sysctl or /proc but am coming up empty.

share|improve this question
The module.parameter=value syntax is documented in kernel-parameters.txt for recent kernel versions, but not in 2.4, so this is presumably a recent(-ish) feature. I had a quick look at the source (include/module.h) and there doesn't seem to be an equivalent feature in 2.4, nor (in drivers/net/bonding/bond_main.c) do I see another way to set these parameters. – Gilles Sep 27 '11 at 0:39
How old is old? It looks like this was in 2.4.22: fxr.watson.org/fxr/source/drivers/net/bonding/… – polynomial Oct 4 '11 at 2:22
My particular kernel is 2.4.37 – bdk Oct 4 '11 at 2:30
How did you (so far) try searching in /sys and /proc? Please describe a bit, maybe some new ideas will come up. – rozcietrzewiacz Oct 4 '11 at 6:33
Could you paste the output of ls -l /proc/net/bonding/? – rozcietrzewiacz Oct 4 '11 at 7:13
up vote 3 down vote accepted

I found it - but it's bad news, unfortunately. Here's what Documentation/networking/bonding.txt file for says:

It is recommended to configure the driver as module sinceit is currently the only way to pass parameters to the driverand configure more than one bonding device.

So no module = no changing of parameters in this case. Sorry.

share|improve this answer
Boo! Reluctantly accepting this answer. – bdk Oct 6 '11 at 22:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.