LinuxQuestions.org
Visit Jeremy's Blog.
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 11-20-2005, 11:10 PM   #1
netboy
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Multiple provider gateway


Hi all

I've built a Linux router/gateway for a network pictured below. The router has two providers.
Code:
                                                                 ________
                                          +------------+        /
                                          |            |       |
                            +-------------+ Provider 1 +-------
        __                  |             |            |     /
    ___/  \_         +------+-------+     +------------+    |
  _/        \__      |     if1      |                      /
 /             \     |              |                      |
| Local network - if0+ Linux router |                      |     Internet
 \_           __/    |              |                      |
   \__     __/       |     if2      |                      \
      \___/          +------+-------+     +------------+    |
                            |             |            |     \
                            +-------------+ Provider 2 +-------
                                          |            |       |
                                          +------------+        \________
Local network: 192.168.0.0/24
if0: 192.168.0.254

if1: 192.168.10.1
Provider 1 router: 192.168.10.254

if2: 192.168.20.1
Router 2 router: 192.168.20.254

Provider 2 is the "main" link for web access etc and Provider 1 is going to be dedicated for mail. At the moment though I haven't set any of this up, everything is simply being routed out through Provider 2.

What I want to achieve is if Provider 2 goes down, all local traffic gets routed and NAT'd out through Provider 1.

I also want to provide fallback for mail. So mail will come down and go out Provider 1, however if Provider 1 goes down, mail will need to come down Provider 2 and out Provider 2. The former is easily achieved through a secondary MX.

So having little experience with iptables and routing on Linux, I was wondering if someone can provide advice on what routes I'll need and the tools I need to use. Can it just be done with 'route' command or will I need 'ip' etc?

Thanks in advance.
 
Old 11-21-2005, 06:55 PM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

I think you should have a look at this link: http://lartc.org/howto/
Chapter 4.2. Routing for multiple uplinks/providers should answer a lot of your questions.
Even though it may not be the ultimate answer, it's definetly something you have to read.
 
  


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
multiple interfaces, default gateway sopiaz57 Linux - Networking 6 05-03-2005 02:02 PM
multiple webservers one gateway? phonecian Linux - Networking 4 03-11-2005 11:10 AM
Shell Provider nistelrooy Linux - Security 1 02-13-2005 04:20 PM
What's your internet provider ? jhemono General 33 05-21-2004 05:59 AM
Internet Service Provider RDW Linux - Newbie 2 01-14-2002 02:10 AM

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

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