Solved

Routing to Multiple Inet Connections

Posted on 1998-04-16
4
216 Views
Last Modified: 2010-03-18
I have a Linux box as my firewall/router with 3 NIC's; 1 NIC for LAN and 1 for each Inet connections.  I have an internal LAN with 2 routes to the Internet.  How do I set up routing to route to a selected Inet connection and somehow sense whether that connection is up and if connection is not up, route to the alternate connection?  Inet connections are 56K frame and 4Mbps.  I am using the Redhat 5.0 Distribution.
0
Comment
Question by:WARPHEAD
  • 2
  • 2
4 Comments
 

Author Comment

by:WARPHEAD
ID: 1587591
Edited text of question
0
 
LVL 2

Accepted Solution

by:
eckspurt earned 150 total points
ID: 1587592
You can do that with gated, but you might find BGP a bit much to dive in to.  Your other option is to use custom scripts to detect the loss of one connection and switch your routing to the other.  An advantage to gated is that you could potentially set up preferential routing so that if both interfaces are up, you'd send traffic through whichever provider is closer to the destination.

Some documents to reference:

http://www.gated.merit.edu/
http://www.netaxs.com/~freedman/bgp.html
http://ds.internic.net/rfc/rfc1771.txt
http://www.hojmark.org/networking.html#rout

0
 

Author Comment

by:WARPHEAD
ID: 1587593
I am going to have to give you an A on this one.  Because, I seem to have not completely asked the whole question.  In addition to having two seperate routes to the internet...they are provided by two seperate service providers.  I should have asked how also to route my traffic via both.  My bust...  
0
 
LVL 2

Expert Comment

by:eckspurt
ID: 1587594
It's the same answer.  You need to use the Border Gateway Protocol (BGP) to talk to multiple providers.  Most big providers will be reluctant to talk to you via BGP because it's too easy to goof things up, but if you want to be multihomed, that's how you'd do it.

Just to drop the connection with one provider and switch to the other is simpler, tho' -- you could prob'ly do it with gated just fine, or you might find it easier to write a couple lines of shell script (or Perl) to switch.

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UPD maximums on Red Hat 6 115
Linux DNS problems 23 412
running production stuff on centos 4 120
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 116
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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