Matt,
This OpenFiler 2.3, which based on rPath Linux, which I believe follow
a little the RedHat line.
I do not think the Debian based commnds / mehtods work for this...
Yes, I have been reading the kernel docs a lot, bonding.txt...
I have been trying all those methods.
I think I always ended with the stability issue: 10 s of working pings
and 10 s of time outs...
I was mainly trying to use the full "install bond0 /sbin/modprobe"
commands in modprobe.conf.
By the way, I have 2 x e1000 (Intel Gigabit) and 2 x tg3 (NetXtreme).
What else?
Thanks,
-----Original Message-----
From: Matt Zagrabelny
Cc: linux-net@xxxxxxxxxxxxxxx
Sent: Tue, Feb 2, 2010 4:08 pm
Subject: Re: How to correctly create multiple bonding interfaces in
kernel 2.6.29.6
On Tue, 2010-02-02 at 15:40 -0500, Hugo wrote:
Folks,
I am currently working with kernel 2.6.29.6-0.16.smp.gcc3.4.x86_64 .
Per this conversation:
[Bonding-devel] [PATCH] bonding: fix multiple module load problem
http://lkml.indiana.edu/hypermail/linux/kernel/0906.1/01121.html
, I would like to know how to correctly create multiple bonding
interfaces with different options / modes.
Can anybody help me with that?
I recently upgraded from kernel 2.6.26 which was working fine using
something like in modprobe.conf:
install bond0 /sbin/modprobe --ignore-install bonding -o bond0
mode=balance-alb miimon=100
install bond1 /sbin/modprobe --ignore-install bonding -o bond1
mode=balance-rr miimon=100
, unfortunately kernel 2.6.29 does not seem to like these and when I
test the bonding interfaces using just a ping, I got a kernel panic.
Also, I have trying several different ways to configure the bonding
interface, but it is never stable.
Ping will work for 10 seconds, time out for another 0 or so and back
and forth.
Any help / thoughts / comments will be greatly appreciated.
What distro are you using?
There are a few ways to configure bonding under Debian, the OS I use.
Here are a couple:
cat /etc/network/interfaces
auto bond0
iface bond0 inet static
address 131.212.100.1
netmask 255.255.255.0
network 131.212.100.0
broadcast 131.212.100.255
gateway 131.212.100.254
pre-up echo balance-rr > /sys/class/net/bond0/bonding/mode
up echo 100 > /sys/class/net/bond0/bonding/miimon
up echo 200 > /sys/class/net/bond0/bonding/downdelay
up echo 200 > /sys/class/net/bond0/bonding/updelay
up echo +eth0 > /sys/class/net/bond0/bonding/slaves
up echo +eth1 > /sys/class/net/bond0/bonding/slaves
or
sudo aptitude install ifenslave-2.6
cat /etc/network/interfaces
auto bond0
iface bond0 inet static
address 131.212.100.1
netmask 255.255.255.0
network 131.212.100.0
broadcast 131.212.100.255
gateway 131.212.100.254
slaves eth0 eth1
bond_mode active-backup
bond_miimon 100
bond_downdelay 200
bond_updelay 200
bond_primary eth0
You can also check out Documentation/networking/bonding.txt in your
kernel source tree.
You may need to
echo bonding >> /etc/modules
to get it to survive a reboot.
--
Matt Zagrabelny - mzagrabe@xxxxxxxxx - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 4096R/42A00942 2009-12-16
Fingerprint: 5814 2CCE 2383 2991 83FF C899 07E2 BFA8 42A0 0942
He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html