Operating System - Linux
1830214 Members
1606 Online
109999 Solutions
New Discussion

Re: using multiple NFT bonds on RHEL4 with preference

 
Armin Norouzi
Frequent Advisor

using multiple NFT bonds on RHEL4 with preference

Hello,
I need to configure two NFT bonds on my BL45p servers using 2 NICs for each bond. I cannot set preference on my bonds (I can't set primary NIC for my NFT)and by default, the primary interface is eth0 or eth 2. I can't change it in any way (even when I bond eth1 and eth2 together, primary NIC is eth2 !!).

Does anyone have any idea.
Regards-Armin
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: using multiple NFT bonds on RHEL4 with preference

The bonding module has an argument that allows you to specify the primary interface, you must load the module like this:

/sbin/insmod bonding primary=eth0

You can also set it in modprobe.conf:

alias bond0 bonding
options bonding miimon=100 mode=1 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?
Armin Norouzi
Frequent Advisor

Re: using multiple NFT bonds on RHEL4 with preference

Dear Ivan,
I've tried the method you mentioned many times, but it doesn't work when I create more than one bond on my server. I think this may be a bug!
Any further help would be appreciated.
Ivan Ferreira
Honored Contributor

Re: using multiple NFT bonds on RHEL4 with preference

Can you post your modprobe.conf file?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: using multiple NFT bonds on RHEL4 with preference

Here you can see a modprobe.conf for multiple bond devices:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1010194

Maybe the max_bonds helps you also.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Armin Norouzi
Frequent Advisor

Re: using multiple NFT bonds on RHEL4 with preference

This is my /etc/modprobe.conf:

#######
install bond0 /sbin/modprobe -a eth0 eth1 && /sbin/modprobe bonding
alias bond0 bonding
install bond1 /sbin/modprobe -a eth2 eth3 && /sbin/modprobe bonding
alias bond1 bonding
options bonding miimon=100 primary=eth0 mode=1 max_bonds=2
alias eth0 bcm5700
alias eth1 bcm5700
alias eth2 bcm5700
alias eth3 bcm5700
########

Thanks
Ivan Ferreira
Honored Contributor

Re: using multiple NFT bonds on RHEL4 with preference

Have you tried with something like this?

cat /etc/modprobe.conf:

alias bond0 bonding
options bond0 miimon=100 primary=eth0 mode=1 max_bonds=2
alias bond1 bonding
options bond1 miimon=100 primary=eth0 mode=1 max_bonds=2

cat /etc/sysconfig/network-scripts/ifcfg-ethX
DEVICE=ethX
USRCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

If that does not works, try this:
cat /etc/modprobe.conf:

alias bond0 bonding
alias bond1 bonding

Set the module options in the bond interface configig file.

cat /etc/sysconfig/network-scripts/ifcfg-bond
DEVICE=bond
BOOTPROTO=static
BROADCAST=172.16.0.255
IPADDR=172.16.0.1
NETMASK=255.255.255.0
NETWORK=172.16.0.0
ONBOOT=yes
BONDING_MODULE_OPTS='miimon=100 mode=1 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?