Bonding on 2.4.3, ifenslave wierdness

Daniel Pfenniger daniel.pfenniger at obs.unige.ch
Thu Apr 26 22:37:57 PDT 2001


Aaron Van Couwenberghe wrote:

>   At work we've been using Willy Tarreau's channel bonding patches against
> linux 2.2.17, and it's been working just fine for us. Now, though, we need
> to upgrade our systems to kernel 2.4.x (specifically 2.4.3), and we've been
> having bad luck with the included driver. I'm using the
> ifenslave.c available from beowulf.org that went with bonding.c 0.2
> (ifenslave.c 0.7, Don Becker's version). I'm not sure if there is a new one
> for the 2.4 kernel's driver....

With 2.4 kernels ifenslave is no longer required.  There is a bug 
up to kernel 2.4.2 at bonding stop (typically at shutdown) 
crashing the kernel.

My configuration files are (RedHat 6.2, kernel 2.4.3, tulip cards):

/etc/module.conf :
-----------------
alias eth0 tulip
alias eth1 tulip
alias bond0 bonding

/etc/sysconfig/network-scripts/ifcfg-bond0
------------------------------------------
DEVICE=bond0
IPADDR=192.168.2.64
NETMASK=255.255.255.0
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
ONBOOT=yes
USERCTL=no
BOOTPROTO=none

/etc/sysconfig/network-scripts/ifcfg-eth0
-----------------------------------------
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

and likewise for ifcfg-eth1 (replace eth0 by eth1)

When configuring the kernel, make sure the bonding option is selected.
After launching the network, or after a boot, ifconfig says:

bond0     Link encap:Ethernet  HWaddr 00:40:05:A1:D9:0D
          inet addr:192.168.2.64  Bcast:192.168.2.255 
Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
 
eth0      Link encap:Ethernet  HWaddr 00:40:05:A1:D9:0D
          inet addr:192.168.2.64  Bcast:192.168.2.255 
Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:5921 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:19 Base address:0xd000
 
eth1      Link encap:Ethernet  HWaddr 00:40:05:A1:D9:0D
          inet addr:192.168.2.64  Bcast:192.168.2.255 
Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:18 Base address:0xb800

As expected the HWaddr are all the same and non zero. 


	Dan





More information about the Beowulf mailing list