Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple ISP connections through router
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 708
Location: Billings, MT, USA

PostPosted: Tue Feb 07, 2012 7:59 pm    Post subject: Multiple ISP connections through router Reply with quote

I have 3 ISP's, Optimum, CenturyLink, and Verizon. The issue is, how do I get my router to talk to all of them? They all get their IP's via DHCP, so static is not an option.

The gateways are:

Optimum (via eth1): 174.45.232.1
CenturyLink (via ppp0): 67.42.227.201
Verizon (via eth3): 192.168.254.1

I have iproute2 installed, but can't find a definitive answer due to me utilizing dynamic IPs.
Back to top
View user's profile Send private message
ponch
n00b
n00b


Joined: 08 Jan 2004
Posts: 61

PostPosted: Tue Feb 07, 2012 8:53 pm    Post subject: Reply with quote

dynamic is not a problem.
just write script to update routing tables via ip-up (for ppp) and dhcp-hooks. For every ip renew - flush old and add new rules.
Back to top
View user's profile Send private message
thegeezer
n00b
n00b


Joined: 11 Jul 2010
Posts: 38

PostPosted: Wed Feb 08, 2012 12:35 am    Post subject: lartc Reply with quote

http://lartc.org/howto/lartc.rpdb.multiple-links.html

the basic principal is one ethernet per link
use iptables mangle to mark A,B, or C on incoming connections

do not mangle-mark the internal LAN

have 3 routing tables, one for each link -- basically the difference in each is the default gateway

then you need
ip rule mark A lookup tableA to have replies go back via the way they came in.

so the question is, which route do you take by default?

you can set by anything, i.e.
ip rule from myPC lookup tableA
ip rule from myMissusPC lookup tableB

or even iptables mangle mark based on protocol etc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum