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 01-31-2003, 10:17 AM   #1
hubergeek
Member
 
Registered: Mar 2002
Location: Hackensack, NJ.
Distribution: RedHat 7.0
Posts: 75

Rep: Reputation: 15
Multiple redundant WAN lines.


Hi,

I have to set up a scheme where I have 4 different ISPs, I want to have a device or method where if one line fails the other would immediately takes its place so internet service is always available.

I would really appreciate your help on this guys.

Thanks.
 
Old 02-06-2003, 03:11 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Sounds cool

It's not something I've tried but it looks to me like you might get some ideas from http://www.linuxvirtualserver.org/ (dunno how this would work for routing) and http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html. Infact why do you need to have a 'fail and take over' method? You can just have all 4 links to one router up all the time, if you loose one then traffic will just keep going out the other three. You might want to give priority to some routes via some links but it should be pretty self managing.

HTH

Jamie...
 
Old 02-06-2003, 04:36 AM   #3
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
You definetely need to do some advanced routing studiying, and its very easy one you figure it out
btw you need to use ip route2
here is a quick example for you
ip ro add default scope global nexthop via 111.222.111.221 dev ppp0 weight 1 nexthop via 111.222.111.222 dev ppp1 weight 1 ...
(this is for spliting internet access) there is lots more for play
good luck
 
Old 07-25-2003, 08:45 AM   #4
VictorClaessen
LQ Newbie
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Slackware 8.1
Posts: 9

Rep: Reputation: 0
I'm working on a similar project, but with only two ISP's. I have a cable modem and an ADSL modem. With the help of this document ( http://www.ssi.bg/~ja/nano.txt ) I have been able to load balance my connections over both lines, but I'm still struggling to find out how to get the 'dead gateway detection' part functioning... hope this link helps you on your way.
 
Old 07-25-2003, 09:10 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Victor - what do you mean by dead gateway detection? Do you want to fail over from one line to another if one of the links dies?

cheers

Jamie...
 
Old 07-25-2003, 09:21 AM   #6
VictorClaessen
LQ Newbie
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Slackware 8.1
Posts: 9

Rep: Reputation: 0
well, what happens now if I pull out one of the cables: the routing systems keeps on sending packets to that interface, even if they don't reach their destination.
Only if I disable the interface with "ip link set eth1 down" then the packets will go exclusively over the other (still functioning) line.
But if I set the link up oncemore with "ip link set eth1 up" then the routing system still lists the connection as dead.

if I list the routes in the multipath table it says:

root@linuxrouter:~# ip route list table 222
default proto static
nexthop via 10.0.0.138 dev eth1 weigth 1 dead
nexthop via 192.168.1.1 dev eth2 weight 1

and all traffic goes out via eth2. I don't know how to remove the 'dead' flag from the route. (Technically, I don't even know if where the flag sticks; on the route, the ip or the interface?)

So as long as both lines are functional, my router works like a charm, load balancing and all...but I haven't been able to get any kind of redundancy going.
If one line fails it should of course be marked dead or inactive, but I would also like to implement a check every minute or so that checks if it is back up and then to set it active again. I'm currently studying the subject.

I must also admit I'm very new to Linux. I've only been working on this router for about two weeks now...and I've only about a months experience with linux at all :-|
 
Old 07-25-2003, 09:24 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I think (but am not 100% sure) that the Advance routing HOWTO mention above covers failover between routes. That might give you some hints.

cheers

Jamie...
 
Old 07-25-2003, 09:26 AM   #8
VictorClaessen
LQ Newbie
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Slackware 8.1
Posts: 9

Rep: Reputation: 0
oh, perhaps for clarity I should explain the setup of my machine:

P133/112 mb, Slackware 8.1, upgraded to kernel 2.4.21 + patches described in nano.txt, 3 NICs

eth0, internal NIC: ip 67.67.67.67/24 (our intranet = 67.67.67.x)
eth1, external NIC: ip 213.84.x.y/32 -> gateway is 10.0.0.138
eth2, external NIC: DHCP from ISP (therefore behind another router to give it a static IP) ip 192.168.1.1/16 -> gateway is 192.168.1.1
 
Old 07-25-2003, 09:27 AM   #9
VictorClaessen
LQ Newbie
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Slackware 8.1
Posts: 9

Rep: Reputation: 0
ok will have (another ) look at the howto
 
  


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
echo multiple lines of text twistedpair Linux - Software 9 08-08-2007 06:07 PM
Advanced routing across multiple WAN links ? michaelsanford Linux - Networking 1 06-28-2005 09:23 PM
Multiple WAN interfaces (FreeBSD Firewall) mxk *BSD 4 03-17-2005 11:21 AM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
ISDN multiple lines schimmelpilz Linux - Newbie 1 02-24-2004 05:39 PM

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

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