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.
module.parameter=valuesyntax is documented inkernel-parameters.txtfor 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 (indrivers/net/bonding/bond_main.c) do I see another way to set these parameters. – Gilles Sep 27 '11 at 0:39/sysand/proc? Please describe a bit, maybe some new ideas will come up. – rozcietrzewiacz Oct 4 '11 at 6:33ls -l /proc/net/bonding/? – rozcietrzewiacz Oct 4 '11 at 7:13