Solved

How to configure dual nics for redundancy

Posted on 2004-05-01
8
260 Views
Last Modified: 2010-03-17
I have a Dell 1750 PowerEdge servers with two nics cards running on Linux Enterprise Server as a proxy server. How do I configure this two nics cards for redundany?
0
Comment
Question by:pk1008
  • 3
  • 2
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10971870
Do you really need to? A NIC is typically a very reliable device and hardly ever fails. So it isn't likely to cause an interruption in service by itself.

Does your network topology provide alternate switch/routing paths for each NIC? Unless the network infrastructure provides redundant paths for everything simply using two NIC's on the server only moves the sing point of failure out to the switch/router the NIC connects to. Typically switches and routers have much higher failure rates than a NIC.
0
 
LVL 9

Expert Comment

by:Alf666
ID: 10973874
If you *really* want to do it and you know a good deal about networking (ans specially about IP), you could use Linux's bonding driver.

It's stable since kernel 2.4. You can find the doc in your kernel source tree :

/usr/src/linux/Documentation/networking/bonding.txt
0
 

Author Comment

by:pk1008
ID: 10981062
okay, this is what I have setup for redundancy. We have redundancy routers and switches. I assigned an ip to each NIC.
Registered both ips on a single hostname on DNS (ie.  HOSTA : 10.10.10.111  ;   HOSTA : 10.10.10.112). Referenced the
hostname by DNS on the application, in this case, if one NIC goes down, DNS should reference to the other ip. Is this config
will work properly ?
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 40

Expert Comment

by:jlevie
ID: 10981417
With two A records having the same hostname, but different IP's, I believe the DNS server will round-robin between those IP's. That doesn't really provide the redundancy that you are after because with one network path down half of the requests will still go to the other IP.

Since you have redundant network paths, but apparently don't have a smart load balancer, say like an Alteon, it would make more sense to me to only have one NIC "up and running" and use a cron job or "watcher scipt" to switch the running NIC to the backup path if the primary NIC becomes unsable.
0
 

Author Comment

by:pk1008
ID: 10992777
I guess the caching function on the workstation still goes to the bad nic and it won't automatically switch then. Can you direct me to some sample script on some cron job that allows to switch nic if the primary goes down. Thank you.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 10996989
That could be as simple as:

ping -c 2 some-local-ip >/dev/null
if [ $? -eq 1 ]; then
  ifconfig eth0 down
  ifconfig eth1 up
fi

assuming that eth1 has already been configured with the same IP as eth0 and left in a down state. You'd really want to use a fancier script that flip/flops between the active and standby interfaces and gracefully handles the case where neither is working.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now