Operating System - Linux
1829951 Members
4001 Online
109998 Solutions
New Discussion

Bonding RED HAT ENTERPRISE LINUX 5.2

 
WilliamSmith11
Super Advisor

Bonding RED HAT ENTERPRISE LINUX 5.2

Hi
I am trying to configure a bond0 of two network card on a integrity machine rx3600 running red hat enterprise linux 5.2.

I have follow this procedure
# vi /etc/sysconfig/network-scripts/ifcfg-bond0 Append following lines to DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.1.1.145
NETMASK=255.255.255.0
GATEWAY=10.1.5.1
USERCTL=no

TASK 2: Modify eth0 and eth1 config files:



[root@linuxhost network-scripts]# more ifcfg-eth0
DEVICE=eth0
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no
[root@linuxhost network-scripts]# more ifcfg-eth1
DEVICE=eth1
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no

TASK 3: Load driver module:

I have modify the kernel modules configuration file so that it looks like the one below.

[root@linuxhost network-scripts]# more /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=balance-alb miimon=100

TASK 4: Test configuration by modprobe and service network restart commands.

[root@linuxhost network-scripts]# modprobe bonding
[root@linuxhost network-scripts]# service network restart

But when the network service is restarted the bond0 never come up.

Question
Some special switch is required?
I am using a hub for test.
Regards

W.S
rperez
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: Bonding RED HAT ENTERPRISE LINUX 5.2

In my configuration I have:

ONBOOT=yes

For the physical interfaces and it's working.

My modprobe.conf:

alias bond0 bonding
options bond0 mode=1 miimon=100 max_bonds=2 primary=eth0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
WilliamSmith11
Super Advisor

Re: Bonding RED HAT ENTERPRISE LINUX 5.2

No special switches requirement are mandatory ?

I was trying with a Hub, so I think that is the reason cause was not working ,

I will modified the modprobe.conf file too.

Some other ideas are wellcome, some ideas about when the network service are restarted the bond0 does not come up?


Regards


W.S
rperez
Michal Kapalka (mikap)
Honored Contributor

Re: Bonding RED HAT ENTERPRISE LINUX 5.2

Steven E. Protter
Exalted Contributor

Re: Bonding RED HAT ENTERPRISE LINUX 5.2

Shalom,

Hub does not impact this. I've bonded RHEL 5.x systems on a hub.

What does /var/log/messages say when the service network restart command is issued?

Can you attempt a reboot?

This may have something to do with the rx system hardware being a little special.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rick jones
Honored Contributor

Re: Bonding RED HAT ENTERPRISE LINUX 5.2

I've only played with the bonding driver a little under Integrity Linux, but enough to be confident that the underlying system hardware is a don't care to the bonding driver. There is probably just some minor config file issue somewhere.

I would suggest trying the plain command-line stuff - iirc ifenslave - and then commandline ifconfig commands and see what comes of that and then work-out what the config files should say. Pity RHEL5.2 doesn't have some sysadmin tool to do that automagically - or does it?

However... a hub implies 10/100 speeds only, and not GbE. And the core interfaces on an rx3600 are GbE links, which suggests that if the goal is to see higher outbound throughput it would be "better" to simply replace the hub with a proper GbE switch (see http://www.hp.com/go/procurve for a slew of choices, among others) and not worry about bonding.
there is no rest for the wicked yet the virtuous have no pillows
loco_vikide
Frequent Advisor

Re: Bonding RED HAT ENTERPRISE LINUX 5.2

Hello,

The option entries in modprobe.conf file don't seem to work in RHEL 5.2. I had to move the options to ifcfg-bond0 file and it worked for me. Example:
BONDING_OPTS='miimon=100 mode=1 primary=eth0'

Beside setting ONBOOT=yes in ifcfg-eth0 and ifcfg-eth1, you might want to hard-code their respective MAC addresses in the file.

Cheers