LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-02-2005, 05:34 AM   #1
madsjakob
LQ Newbie
 
Registered: Jul 2003
Location: Copenhagen, Denmark
Distribution: Fedora Core 4
Posts: 11

Rep: Reputation: 0
Networking Failover - in- and out-going traffic


Hi I'm trying to set up network failover on machines with multiple nics. I found some solutions too, but I'm not quite satisfied yet.

Let's say I have two nics with ip-adresses (eth0) 10.0.0.1 and (eth1) 10.0.0.101 and a default gateway 10.0.0.254

For outgoing traffic I can add the default gateway for the routing tables for both nics

route add default gw 10.0.0.254 dev eth0
route add default gw 10.0.0.254 dev eth1

and set the number of seconds before trying another line

echo 10 > /proc/sys/net/ipv4/route/gc_timeout

But I seems like the system takes a little more time than the 10 seconds I specify to switch to the other nic. Could I get a faster switch somehow?

For incoming traffic I have set up a DNS record for both ips - translating "myserver.dk" into both 10.0.0.1 and 10.0.0.101. Works fine when both nics are up and balances the load also. But what about one nic is failing? I guess the dns server don't experience that and will keep spamming a bad ip every other lookup (as the first in the list). Will clients automatically try the next ip if they get the bad one first?

Best regards

Mads Jakob
 
  


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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 01:09 AM
Linux Failover !!!!! Iptables_NEWBIE Linux - Security 8 08-16-2005 03:34 AM
how to find http traffic and mail traffic alone? basbosco Linux - General 1 06-07-2005 11:29 PM
Wireless traffic stomps isdn traffic on gateway machine Radix999 Linux - Wireless Networking 0 11-14-2003 01:54 AM
Failover LAN gkrishna Linux - Networking 1 06-25-2003 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:39 PM.

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