1840191 Members
3171 Online
110162 Solutions
New Discussion

Channel Bonding Problem

 
Ferdi Castro
Advisor

Channel Bonding Problem

Hi,
I tried to create bond configuration---ifcfg-bond0, then modules.conf.
i tried to check if the module using lsmod but it was not there. I tried to do insmod bond0 and gives me the error... it says no such file or directory and when i command rmmod bond0 Module bond0 does not exist in /proc/modules.
I understand i lack this module. How can I introduce this module in my linux box?
thanks
10 REPLIES 10
Al Licause
Trusted Contributor

Re: Channel Bonding Problem

Lets start with which version of linux you're runing.

Then tell us which network devices you're using along with the drivers.

And the hardware platform would help as well.

Ferdi Castro
Advisor

Re: Channel Bonding Problem

im using RH Linux AS 4.0
here are the confi i made
[root@erefillcc1 network-scripts]# more ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=no
HWADDR=00:16:35:04:EE:FD
TYPE=Ethernet
[root@erefillcc1 network-scripts]# more ifcfg-eth1
# Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=no
HWADDR=00:16:35:04:EE:FC
TYPE=Ethernet
[root@erefillcc1 network-scripts]# more ifcfg-eth2
# Broadcom Corporation NetXtreme BCM5703 Gigabit Ethernet
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:15:60:8A:97:3F
TYPE=Ethernet
[root@erefillcc1 network-scripts]# more ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=172.29.11.0
NETMASK=255.255.255.0
IPADDR=172.29.11.34
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
GATEWAY=172.29.11.254

in lsmod there is no bondo even in the /proc/modules
Eric Singer
Frequent Advisor

Re: Channel Bonding Problem

These are my bonding files off a Redhat AS 4 server. If you change /etc/modprobe.conf be sure to run a mkinitrd and reboot. I'm showing "bonding" as the kernel module that's loaded on Redhat AS 4.0, not "bond0"

Eric
========================================
cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=128.100.1.32
NETMASK=255.255.0.0
GATEWAY=128.100.5.6
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet

cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
TYPE=Ethernet

cat /etc/modprobe.conf
alias eth0 tg3
alias eth1 tg3
alias scsi_hostadapter cciss
alias usb-controller uhci-hcd
alias usb-controller1 ehci-hcd
alias bond0 bonding
options bond0 miimon=100
install bond0 /sbin/modprobe -o bonding0 --ignore-install bonding
Alexander Chuzhoy
Honored Contributor

Re: Channel Bonding Problem

The module is "bonding", not bond0
Create an alias in /etc/modprobe.conf
Ferdi Castro
Advisor

Re: Channel Bonding Problem

Thanks for the reply.
how is this mkinitrd command exectuted.
i did was
mkinitrd -v -f -preload
then reboot
unfortunately bond is still not there.

I have some few questions
1) does bonding need a driver? How can I check that I have bonding through command line?
2) Suppose I don't have the driver? Is it free to download

Thanks.
Eric Singer
Frequent Advisor

Re: Channel Bonding Problem

mkinitrd is executed using the output from the command "uname -r"

Example
>uname -r
2.6.9-34.0.1.ELsmp
>mkinitrd -f /boot/initrd-2.6.9-34.0.1.ELsmp.img 2.6.9-34.0.1.ELsmp

or

>mkinitrd -f /boot/initrd-`uname -r`.img `uname -r`
Ferdi Castro
Advisor

Re: Channel Bonding Problem

After doing mkinitrd as suggested by Eric. problem still occurs
Error encountered:
/sbin/modprobe device bond0 does not seem to be present.
what could be the problem here? is it a driver?
when i do lsmod bonding is not there.
PS. Im using RH 4. thanks.


Alexander Chuzhoy
Honored Contributor

Re: Channel Bonding Problem

if you do:
insmod bonding
lsmod |grep bonding

what's the output?
Ferdi Castro
Advisor

Re: Channel Bonding Problem

outout: insmod can't read 'bonding' no such file or directory
lsmod | grep bonding doesn't have any output
Eric Singer
Frequent Advisor

Re: Channel Bonding Problem

Do you have a directory called "bonding" when you perform this command

ls -l /lib/modules/`uname -r`/kernel/drivers/net