LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   network bonding questions (https://www.linuxquestions.org/questions/linux-general-1/network-bonding-questions-525194/)

binary_0011 02-03-2007 04:27 AM

network bonding questions
 
I try to configure bonding in RHEL 4, I google a lot and found different configuration/example :


Example 1:

alias bond0 bonding
options bond0 -o bond0 mode=balance-rr miimon=100

alias bond1 bonding
options bond1 -o bond1 mode=balance-alb miimon=50



Example 2:

alias bond0 bonding
options bond0 mode=0 miimon=100
alias bond1 bonding
options bond1 -o bonding1 mode=0 miimon=200


Example 3:
alias bond0 bonding
options bond0 mode=x,miimon=100,primary=eth0,etc.
alias bond1 bonding
options bond1 mode=x,miimon=100,primary=eth2,etc.


My question is :

1: when should we use bond1 -o ? what does this syntax -o mean?

2: what is the different between bond1 -o bonding1 and bond1 -o bond1 ? when should we use which?

3: In example 3, is the configuration wrong? example 3 is from redhat website itself.

4: I have have 4 interfaces , i try all the examples above and it seems to work, i dont see any different but regardless which example i use, when i do a lsmod | grep bond , it only shows bonding . Is it suppose to show 2 bondings?

attached is my configuration :

----------------------------------
[root@rhel4 ~]# more /etc/modprobe.conf
alias eth0 vmnics
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsih
# Added by VMware Tools
install vmnics /sbin/modprobe vmxnet; /sbin/modprobe pcnet32; /bin/true
alias char-major-14 sb
options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
install snd-ens1371 /sbin/modprobe --ignore-install snd-ens1371 && /usr/sbin/als
actl restore >/dev/null 2>&1 || :
#alias eth0 pcnet32
alias eth3 pcnet32
alias eth1 pcnet32
alias eth2 pcnet32
install bond0 /sbin/modprobe -a eth1 eth2 && /sbin/modprobe bonding
alias bond0 bonding
options bond0 primary=eth0 miimon=100 mode=1 max_bonds=4
install bond1 /sbin/modprobe -a eth0 eth3 && /sbin/modprobe bonding
alias bond1 bonding
options bond1 primary=eth0 miimon=100 mode=1 max_bonds=4
-----------------------------------------

[root@rhel4 ~]# more /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.1 (October 29, 2004)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:9d:7d:95

Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:9d:7d:9f

------------------------------------------------------------


[root@rhel4 ~]# more /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v2.6.1 (October 29, 2004)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:9d:7d:8b

Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:9d:7d:a9
---------------------------------------------------------

[root@rhel4 ~]# lsmod | grep bond
bonding 58984 0


thanks.

Brian1 02-03-2007 09:30 AM

Are you wishing to bond all 4 together?
Or are you trying to create two seperate IP Bonds? two nics per bond?

This link might help.
http://www.devco.net/archives/2004/1...et_bonding.php

Post the contents of the following files if you have tried to setup already.
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth2
/etc/sysconfig/network-scripts/ifcfg-eth3
/etc/sysconfig/network-scripts/ifcfg-bond0
/etc/sysconfig/network-scripts/ifcfg-bond1 ( you are creating two seperate bonds.)

Brian


All times are GMT -5. The time now is 05:17 AM.