LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2009, 09:44 AM   #1
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Rep: Reputation: 15
multiple bonds = multiple primary interfaces?


Hello,

On our server, we have 4 nic ports and out of that we've created 2 separate network bonds. I know there is an option to specify a primary 'ie. primary=eth0', but is there a way to force a primary interface in each bond?

Watching on our cisco switches, its constantly flapping and shows the bond interface as 2 mac addresses because we haven't specified a primary nic in the bond. I assume the switch is confused and both mac addresses are fighting to become the primary interface of the bond? We're running in active-backup by the way and running RHEL4 AS4 (Update 5).

Thanks...
 
Old 02-17-2009, 11:15 AM   #2
nottings
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
We use mode=balance-tlb and I haven't used active-backup, but...
I would think you can set the primary for each bond in your modprobe.conf file
like this:

alias bond0 bonding
options bond0 max_bonds=2 mode=active-backup miimon=100 primary=eth0
alias bond1 bonding
options bond1 max_bonds=2 mode=active-backup miimon=100 primary=eth2

Of course your ifcfg-eth0,1,2,3 would need to be modified appropriately to specify which nics are used for which bonds
ex:
device=eth0
userctl=no
onboot=yes
master=bond0
slave=yes
bootproto=none
type=ethernet

device=eth2
userctl=no
onboot=yes
master=bond1
slave=yes
type=ethernet

Hope this helps.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple interfaces and bandwidth h/w Linux - Networking 9 10-23-2007 03:42 PM
Multiple interfaces in one VLAN Fund-A-Mental Linux - Networking 1 03-06-2007 07:44 AM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM
DHCPd for multiple interfaces Noerr Linux - Networking 2 02-07-2003 06:40 PM
Multiple interfaces prroblem liuyangtj Linux - Networking 9 09-25-2001 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:38 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