Best way to use a second internet connection

Issues related to configuring your network
flavius
Posts: 5
Joined: 2017/08/16 00:40:01

Best way to use a second internet connection

Postby flavius » 2017/09/03 19:45:11

A few days ago, when my CentOS box was ready I decided it was time to finally use the second internet connection in the house. Nobody was using it and my three teenage sons who are massive data hogs weren't even aware of it. :)

I have enough basic networking knowledge to keep our home network running, so I gave this a shot.
Here's what I wanted to accomplish:

1. My CentOS server uses it by default and can see all the resources in our network
2. My wife who runs an internet business from our house, and our sons, can easily switch to it should the main connection go down and still use all the resources in the network.

Not sure if this is really relevant for the question that I have, but it might be: our main network that everybody uses is wireless. I have five wireless bridges (actually all airport extremes in bridge mode) that connect all the locations in the house with the office (smack in the center of the house) where the cable modems and the bridge that owns that network are located. Since those bridges don't have a clue who would be the best one to take on a given wireless client I allow only the two fastest (last AC version) to have wireless clients.

Here's what I came up with - and it's really not that elegant, but it mostly does what I want it to do.
1. Switched the second Comcast router (can't turn off DHCP) into bridge mode
2. Connected another router (DHCP turned off) with its WAN port to that comcast bridge
3. Connected the new router to the first Comcast router (regular port) which is also the DHCP server (10.1.10.1) and gave it a static address, like 10.1.10.2.

So, my CentOS box which is behind one of those apple bridges, currently has that connection all to itself, simply by using the new gateway 10.1.10.2. Now is there a better way to accomplish this? With routes maybe?

Thanks!

User avatar
jlehtone
Posts: 1859
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Best way to use a second internet connection

Postby jlehtone » 2017/09/04 11:16:41

Let me see if I got the gist of it:
* You have subnet 10.1.10.0/x (LAN) that has multiple devices.
* Two of the subnet members, A and B, have static addresses (.1 and .2).
* There is a DHCP server. Server offers .1 as "router".
* Both A and B have a link to a second subnet(s); ISP. Both can route and NAT.
* Subnet member C, a CentOS, ignores DHCP routes and uses .2 as default route (manual config).

What you have physically ... sorry, cannot follow. Perhaps a picture?


If one would have a configurable router with three ports: WAN-A, WAN-B, LAN, then the LAN subnet members would not have to know about what is behind "the one and only" router. The router could do load balance/HA/QoS for all of them.


Linux can have a route that has more than one "nexthop", i.e. could use both .1 and .2. With weight to give one a preference. I have only tested it, but never configured.

flavius
Posts: 5
Joined: 2017/08/16 00:40:01

Re: Best way to use a second internet connection

Postby flavius » 2017/09/04 20:49:45

So, here's a picture of the essential pieces - all the apple bridges route to connection one. Currently, if any of the machines wants to use connection 2 gateway has to be set to 10.1.10.2.

[img]
Screen%20Shot%202017-09-04%20at%204.43.16%20PM.png
[/img]
Attachments
Screen Shot 2017-09-04 at 4.43.16 PM.png
Screen Shot 2017-09-04 at 4.43.16 PM.png (75.9 KiB) Viewed 115 times