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
 
LinkBack Search this Thread
Old 12-07-2009, 12:31 PM   #1
arty
Member
 
Registered: Nov 2008
Posts: 66

Rep: Reputation: 17
backup line required


hello,
i have a server running centos on a adsl 24mbps down/1mbps up with a static ip
the problem is that now and then i'm facing downtimes
and i thought to get a 2nd line as a backup
but how am i going to merge these 2 lines
they will be from different providers with different ips
my think is to use 2 nics, 1 for each line
and use different IN A records on the domain's zone file
but again if one of these lines is out 50% of people trying to use that site won't be able to
any ideas?
 
Old 12-07-2009, 12:54 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 99
You can try a dual wan firewall for one. Look here.
 
Old 12-07-2009, 01:15 PM   #3
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
this will work ok if i want the server to access the internet
but what happens when i want internet to access the server
2 lines means 2 ip addresses
if one of them is down people who try to access a website that directs to that ip address will fail
my thought was to use 2 IN A records in the domain zone file, 1 for each address
this will give a 50% chance of fail
but still it's not tnough
 
Old 12-08-2009, 08:57 AM   #4
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
c'mon guys i thought there were a lot of experts in networking in here
you helped me out various times
can't you help me with this one
i've been stretching my mind trying to figure out what to do
 
Old 12-08-2009, 10:59 AM   #5
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by arty View Post
c'mon guys i thought there were a lot of experts in networking in here
you helped me out various times
can't you help me with this one
i've been stretching my mind trying to figure out what to do
You're right. But why they have to use imagination.

Tell, what kind of downtimes your server has?
Where are they happen? Are these ISP problems or your equipment?

Last edited by nimnull22; 12-08-2009 at 11:09 AM.
 
Old 12-08-2009, 04:38 PM   #6
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
isp related problems
i live in greece and all isps have same issues
so my think is to combine 2 different isps
they can't be down at the same time
 
Old 12-08-2009, 04:53 PM   #7
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by arty View Post
isp related problems
i live in greece and all isps have same issues
so my think is to combine 2 different isps
they can't be down at the same time

If you connect to two different ISP, you can't get the same IP.

The only idea is to talk with both of them in order to get better service, and choose one.
You can pay more to one of them, and may be get better service.

Or you can try to use Dynamic DNS, so when one will go down, and you will get different IP, server can announce it.
 
Old 12-09-2009, 03:37 PM   #8
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
i, see
so there is no possibility to have bind "know" when one of 2 ips is down and to send all dns requests to the other ip?
 
Old 12-10-2009, 04:11 PM   #9
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
If you google Dynamic DNS you will find Companies that will host your URL and dynamically point toward the changing IP address. So the IP address changes but the url is static
 
Old 12-11-2009, 09:59 AM   #10
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
yes i'm aware of dyndns.org as i have used their services in the past
but i can't use my own nameservers with dynamic dns or am i wrong?
 
Old 12-11-2009, 12:31 PM   #11
arty
Member
 
Registered: Nov 2008
Posts: 66

Original Poster
Rep: Reputation: 17
about 5 mins ago i had a shower and i had a very crazy idea which i think it will work
but i really need your opinion
well, here it is:

eth0 is one provider
eth1 is the 2nd provider

i will use 2 dns servers(bind) one for eth0 and one for eth1
ns1.mydomain.tld will go to ip of eth0 and ns2.mydomain.tld to ip of eth1

now the first dns server will have A record for ip of eth0
and the 2nd ndns server will have A record for ip of eth1

if i set a TTL of 60secs whichever goes down will give a maximum downtime of 60secs
am i right?
will it work?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
selecting only the required portion of string in a line raghu123 Programming 4 09-17-2008 02:19 AM
One line Mysql backup Roosta21 Linux - Server 6 12-06-2007 10:23 AM
Command line tape backup software tensigh Linux - Software 4 06-21-2007 04:06 PM
command line help required please (remove driver) jz32300 Linux - Newbie 2 06-11-2006 07:13 AM
help required to solve error = line 3: H: command not found Imtiaz Deen Red Hat 1 07-29-2005 01:01 PM


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