Operating System - Linux
1821591 Members
3343 Online
109633 Solutions
New Discussion юеВ

cat /proc/net/bonding/bond0

 
SOLVED
Go to solution
Nath_3
Frequent Advisor

cat /proc/net/bonding/bond0

i need some explaination regarding the options in this file.
Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth5
Currently Active Slave: eth5
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: 2
Permanent HW addr: 00:21:5a:50:02:78

Slave Interface: eth5
MII Status: up
Link Failure Count: 1
Permanent HW addr: 00:21:5a:50:42:03

What does this fault-tolerance mode and load balancing mode mean.

How can i know whether the bonding done is for load balancing or for high performance thruput.

Thanks
Ravi
4 REPLIES 4
Ivan Ferreira
Honored Contributor
Solution

Re: cat /proc/net/bonding/bond0

Please see bonding.txt in the kernel documentation:

http://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/Documentation/networking/bonding.txt

mode= Possible values are 0 (round robin policy, default) and 1 (active backup
policy), and 2 (XOR). See question 9 and the HA section for additional info.

In fault-tolerance (active-backup), only one interface is handling the traffic at a time.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nath_3
Frequent Advisor

Re: cat /proc/net/bonding/bond0

I was able to understand few things in that txt. Good doc. But Regarding the BONDING MODE.

what is the difference between fault-tolerance mode and load balancing mode

mode 2

Regards
Ravi
Ivan Ferreira
Honored Contributor

Re: cat /proc/net/bonding/bond0

Load balancing mode will distribute the load having both interfaces active. To allow this, the network switch also should be configured to allow this.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nuwan Alwis
Valued Contributor

Re: cat /proc/net/bonding/bond0

Hi Ravi,
Im also with Ivan.
This bond works on active-backup mode so at a time only one card is used to handle network traffic and if one card fails the other will take over the job.

In the current mode there is no load balancing.
but you can change the mode to load balance mode "balance-rr" or 0, also there are many to select.

in balance-rr mode, both NIC s use to transmit data so the load distributed among all slave cards in a round-robin manner.

Good Luck...!