LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-03-2007, 01:36 AM   #1
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Rep: Reputation: 30
IP failover


Hi
Can i have 2 (live) ip enteries od the same server in the same name to the name server?
How should it be done so that if one is down th other second ip becomes active
Sanjib gupta
 
Old 05-03-2007, 03:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sorry, that makes little sense, you seem to jump from DNS cname's to hardware failover in a single sentence... you can use as many cnames in a dns record as you wish, and point many domain names to a single ip address. this has nothign to do with resilience though.
 
Old 05-03-2007, 04:03 AM   #3
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Original Poster
Rep: Reputation: 30
then what should i do so that if my eth0 is down the other eth1 gets the same name
 
Old 05-03-2007, 07:30 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
eth0 doesn't have a "name" other than "eth0", it has an ip address. if this is actually a question about network resilience, and nothign to do with cnames at all, you need to explain a lot more about your local topology.
 
Old 05-04-2007, 12:39 AM   #5
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Original Poster
Rep: Reputation: 30
Thanks for your reply

i have 2 cards to my webserver eth0->202.141.xxx.26 eth1->203.197.xxx.10 both are live ip connected to internet by two service provider.

www.xxx.com is the nameserver entry to 202.141.xxx.26
but my leased line goes down quite often and hence my webserver is down

What can be done so that the same nameserver entry (www.xxx.com) be associated with 203.197.xxx.10

so that the webserver can be connected on both ip with same name.

Both webserver and the nameserver runs on Redhat Enterprise 3.0

Sanjib gupta
 
Old 05-04-2007, 01:50 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well firstly are you confident that requests to the secondary ip will work? unless you're routing table and iptables whatnots are correctly configured then all traffic will still try to leave the box the original way, down the dead line.

as for failover itself, you would want to use DNS i guess, but the changes made on your dns providers servers can take up to 2 days to propagate round the internet, nothing can be instant due to the nature of DNS and record caching.
 
Old 05-04-2007, 04:01 AM   #7
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Original Poster
Rep: Reputation: 30
Thanks for your help.
yes i had done proper routing and the packets are being send through the eth1 when eth0 down.
Sanjib gupta
 
  


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
Failover tests ahmedrulezz Linux - Hardware 0 04-03-2006 03:03 AM
Linux Failover !!!!! Iptables_NEWBIE Linux - Security 8 08-16-2005 02:34 AM
ldap failover ar1 Linux - Networking 0 06-15-2005 10:25 AM
Heartbeat and IP failover neilloffhagen SUSE / openSUSE 1 04-13-2005 02:30 PM
nic failover help cambie Linux - Networking 2 01-12-2005 09:41 AM

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

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