Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-06-2018, 11:50 AM   #1
Senior Member
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Gateway that sends alternate connections to different ISPs

Got two ADSL routers connected to each other and one is also connected to a computer. Both are set to static IP's in the same subnet with their DHCP servers disabled. So the computer can be set to use either of the two routers, depending on the default gateway specified in its NIC settings. Or it can use both routers in alternation by running these commands:

ip route del default

ip route add default scope global nexthop via dev eth1 weight 1 nexthop via dev eth1 weight 1

This works, you end up with twice the bandwidth during downloads.

How can this computer be made into a gateway for a home LAN? Simply setting the LAN NIC to "Shared to other computers" does not work. What else is needed?

Last edited by Ulysses_; 02-06-2018 at 11:52 AM.
Old 02-07-2018, 07:56 AM   #2
Registered: Jun 2004
Location: Athens, Greece
Distribution: Slack@Home - RHEL@Work
Posts: 150

Rep: Reputation: 29
You should look into
IP Masquerading
It's been years since i've tried it though


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
how to configure alternate mail relay gateway in ubuntu rytec Linux - Software 0 10-08-2012 09:27 AM
[SOLVED] Port forward DNAT in two ISPs gateway. danielhilst Linux - Networking 1 12-12-2011 04:28 PM
how to monitor gateway connections didi156 Linux - Networking 1 06-04-2010 11:38 AM
Two Internet connections from different ISPs? jantman Linux - Networking 5 04-12-2008 02:49 PM
webserver - allowing connections from outside gateway? maverick106 Fedora 2 05-03-2004 11:01 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration