LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-24-2007, 09:18 AM   #1
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Rep: Reputation: 15
Redundant NIC software?


I have a server with 2 network cards. I want it so that if one of them dies, or can't ping the default gateway for whatever reason, the other card takes over automatically with a minimum of down time. My searches for this haven't come up with anything. I must just be using the wrong keywords, I know something like this must be out there.

At work, on windows, we use some kind of NIC teaming software where they work together as the same virtual card with the same IP. One of them can die without the network going down. I need to be able to implement something like this on the Linux server but I don't know where to look for answers.

Any input is very much appreciated,
Kav
 
Old 04-24-2007, 09:29 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,000
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
You're looking for "bonding". You create a bond0 device and set your 2 cards (eth0 and eth1 for examples) as slaves.

If you do a Google search with the terms "NIC" and "bonding" (no quotes you will see quite a few hits - the first I saw was a how to for Debian.
 
Old 04-24-2007, 09:58 AM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Exactly as stated above by jlightner. And MOST of the Google hits are indeed for Debian, but are pretty transportable.
You will find in your kernel sources the C code for 'ifenslave' which needs to be compiled and put into /sbin as a binary, which makes creating the bonded interfaces simple as pie and has built-in --help info.
 
Old 04-24-2007, 10:07 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,000
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
If you can't work it out and need it for RHEL5 I can dig out the steps I did on RHEL3 which should be fairly close despite the kernel difference (2.4.x vs 2.6.x)

One key difference for RHEL over Debian would be location of network files. They are in /etc/sysconfig/network-scripts (ifcfg-eth0, ifcfg-eth1 etc...)
 
Old 04-24-2007, 11:28 AM   #5
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
http://www.cyberciti.biz/tips/linux-...interface.html

That page was exactly what I needed, it had both debian and redhat instructions. I now have it working perfectly. Thanks a lot guys.
 
  


Reply

Tags
bond0, bonding, networkconfig, networking


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
redundant questions Hern_28 LQ Suggestions & Feedback 16 04-23-2007 03:46 AM
Uses for a redundant P3 machine? LDJ Linux - General 7 09-11-2006 10:18 AM
Redundant servers dranobob Linux - General 3 04-03-2006 02:59 PM
Redundant Connection How to? predator314 Linux - Networking 1 07-12-2003 03:02 AM
Redundant Mail Server minor Linux - General 4 07-20-2001 11:17 AM


All times are GMT -5. The time now is 09:35 PM.

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