LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-03-2007, 04:27 AM   #1
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
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.
 
Old 02-03-2007, 09:30 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bonding aylov Linux - Networking 7 09-03-2007 11:24 PM
Anyone manage to get network bonding mode 0 to work with Debian 'Testing'? Akhran Linux - Networking 0 10-26-2006 06:18 PM
fc2 for network bonding??? yenonn Linux - Networking 0 10-18-2005 03:37 AM
sendmail for internal network and network config questions RedHat123 Linux - Networking 0 04-06-2005 03:15 PM
Network Lag with Bonding wvrhlu Linux - Networking 1 09-27-2004 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration