Operating System - Linux
1826631 Members
3671 Online
109695 Solutions
New Discussion

2 Bonding Channels - How to get Each bonding Options

 
SOLVED
Go to solution
Alzhy
Honored Contributor

2 Bonding Channels - How to get Each bonding Options

I have 4 GigE NICs on our test CLuster Environment (KVM/RHCS/GFS2).

The 1st bond (bond0) I want to set in normal Active-backup mode (as the main "public" interface). The network links go to a dual Switch Infrastructure.

The 2nd bond (bond1) - Iwant to be trunked for increased bandwidth. The network links are via Cross-over cable (no switch).

I cannot seem to make it work so each bond interace will have aa different bonding option. Both bond0 and bond1 reports to be active-failover. Below is my modprobe.conf entries.

alias bond0 bonding
alias bond1 bonding
# The first Bonded Pair - GPN
options bond0 mode=active-backup
options bond0 miimon=100
options bond0 primary=eth0
# The 2nd Bonded Pair - GPN
options bond1 mode=balance-alb
options bond1 miimon=100
options bond1 primary=eth2


Anything I am missing?

TIA!
Hakuna Matata.
1 REPLY 1
Matti_Kurkela
Honored Contributor
Solution

Re: 2 Bonding Channels - How to get Each bonding Options

In RHEL 5 and later, you should put the bonding options into BONDING_OPTS= line in the respective /etc/sysconfig/network-scripts/ifcfg-bond* files.

In other words, remove the "options bond*" lines from your modprobe.conf, and add

BONDING_OPTS="mode=active-backup miimon=100 primary=eth0"

to /etc/sysconfig/network-scripts/ifcfg-bond0, and

BONDING_OPTS="mode=balance-alb miimon=100 primary=eth2"

to /etc/sysconfig/network-scripts/ifcfg-bond1.

MK
MK