LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-08-2005, 06:05 AM   #1
ajeet528
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Angry Finding out Bonding mode of Interface


Hi guys need some help.

Here is short description of the problem:

I have have 8 pysical interfaces in my system which i have configured using netdevice_register fuctions.

I have to bond interfaces 1,2 and 3 to bond0 in round robin mode(ie mode=0). And bond interfaces 4 and 5 to bond1 in active backup mode (ie mode=1).

To do this mode i am supplying the bond mode at the time of bond creation throungh insmod(bonding.c) and creating slaves through enslave module.

However a different module of the project needs to know 1. whether a given interface is bonded or not.
2. if yes then what is the bonding mode.

By checking IFF_SLAVE flag of that net_device structure in interface device driver we can know whether interface is bonded or not.

But i do no know how to find out the bonding mode of the interface ie whether it is in the round-robin mode or active standby mode. I couldnt find out where is the kernel storing bonding mode information.

CAN ANYBODY HELP ME ON THIS.

Early reply would be really appreciated. Thanx in advance
 
Old 09-11-2008, 01:58 PM   #2
bucketheadmjs
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Rep: Reputation: 0
These should give you all the information you need (if I understand correctly):
less /proc/net/bond0/info
less /proc/net/bond1/info
 
Old 09-11-2008, 02:01 PM   #3
bucketheadmjs
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Rep: Reputation: 0
Sorry didn't see how old this was until after the fact...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bonding a virtual interface frd4460 Linux - Networking 3 11-01-2013 03:48 PM
finding the mode(# which occurs most often) of a given vector mshinska Programming 3 11-21-2005 07:14 PM
Interface between user mode and kernel mode santosh_pn Linux - Software 1 06-17-2005 07:20 AM
Finding the Best Interface on Linux wjacky Linux - Newbie 7 03-28-2005 08:38 PM
configuring an interface to go into promisc mode on bootup xyyz Linux - Newbie 1 03-19-2004 04:19 AM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration