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 06-13-2015, 07:07 PM   #1
rgriffiths
LQ Newbie
 
Registered: Aug 2008
Location: Sydney, Australia
Distribution: Fedora21
Posts: 22

Rep: Reputation: 0
Multiple Gateways on network


Our network across two offices, separated by 5kms, joined by airFibre5 WAN link, which looks just like a cat5e cable.

We have a billion 7800nxl router at one office, with two links to internet, ADSL and USB 4G dongle, which turns on when the ADSL goes down.

At the other office we have a Cisco SOHO cable router, with a super fast link to the internet.

I'd like to configure the network so that internet traffic from both offices goes first via the cable modem at office2, then, when that's down, the ADSL router at office1, and if all else fails, the USB Dongle at office1.

And of course, as services come up again, back to fastest available.

Question 1 : Is this do-able at all?
Question 2 : Can anyone advise on how to go about it.

I've modelled the entire network in GNS3, and have it all working .. just wondering how/what to configure to satisy above requirement,

I can't see how I can add multiple gateways on the workstations/servers/printers, and assume i'm going to have to do something with OSPF configuration at one or both routers.

Any advice appreciated

Grif
Attached Thumbnails
Click image for larger version

Name:	Maccas7.png
Views:	28
Size:	95.9 KB
ID:	18702  
 
Old 06-13-2015, 07:14 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
You can't have multiple gateways on hosts. Or you can, but it isn't going to do what you want.

Multiple gateways = multiple default routes with the same metric. Faced with two (or more) identical routes with the same cost/metric, TCP/IP stack will do round-robin load balancing across the gateways, which is hardly ever what you want.

If you want the gateway to choose the best available route, a routing protocol should do the trick. If you need to handle a scenario the default gateway in a network may become unavailable, you need to use a first-hop redundancy protocol like HSRP (Cisco proprietary) or VRRP.
 
Old 06-13-2015, 07:44 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,027

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
I guess you could make the entire deal a lan and then let gateways be used by metric.

There are I'm sure many many more ways.

Fail over virtual machine running a distro. Dedicated hardware failover.
 
  


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
[SOLVED] Multiple default gateways for the same network interface akamel Linux - Networking 2 04-22-2015 09:42 AM
[SOLVED] CentOS 6.2: Multiple gateways, NIC Problems, Cannot ping all network machines. K4M5Y5 Linux - Networking 3 04-16-2012 08:26 AM
How multiple gateways on same network? aigars Linux - Networking 2 12-21-2010 04:31 PM
multiple network gateways cov Linux - Networking 2 03-30-2007 06:06 AM
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 05:01 PM

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

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