Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.8.2] Configure multiple internet connections

Featured Replies

First, I did search the forums, but most topics seem to be centered around bonding or peering multiple connections thru the same switch.  My situation is somewhat different.  I have two internet connections coming thru two routers and I don't have a switch.  I have both NIC's configured, one is a static IP thru eth0, this is my main connection.  The second is DCHP (doesn't have to be, but is for simplicity), thru eth1.  I did figure out how to change a docker app to eth1, but the problem is that I can't access the web interface from my pc, as it is on the same router as eth0 is.  Therefore, how can I make it so that local traffic from one network is routed to the other just using the unraid box.

 

eth0

192.168.6.2 (static)

255.255.255.0 (subnet)

192.168.6.69 (gateway)

bonding yes

bridging yes

enable vlans no

 

eth1

172.30.1.57 (dhcp)

255.255.255.0 (subnet)

172.30.1.254 (gateway)

bonding no

bridging no

enable vlans no

I think this can be done but I'm not 100% sure and it's moderately complex. Please do your due diligence before making any changes as I'm no expert, also carefully document your current state prior to changes for easy reversion. If any of the networking experts out there want to chime in please feel free as I'm making a best guess without equipment in hand.

 

First, both gateways need to be on the same address range so for example:

  • Gateway 1 is currently 192.168.6.69 for ease I'd change this to 192.168.1.1 <--- should be faster of the two, it will provide DHCP and house most of your devices
    • Set the DHCP address range for Gateway 1 (192.168.1.1) to go from 168.1.3 - 168.1.150 (this is up to you, just make sure you don't allow the same address elsewhere)
  • Gateway 2 is currently 172.30.1.254 for ease I'd change this to 192.168.1.2 <-- this will not provide DHCP after the two routers are connected
    • Set the address range for Gateway 2 (192.168.1.2) to go from 168.1.151 - 168.1.200 (DHCP for this device will be disabled just before you connect them)

Next, make sure that all works as expected for each router individually and configure your unRaid so that it works as it does now

  • Once you are confident that each Gateway is now on the same address range and working correctly independent of one another as it does now, you can disable DHCP in Gateway 2 (192.168.1.2) and connect the two routers via ethernet cable to the LAN port.

Once the Gateways are connected

  • Manually configure any device that you want to use Gateway 2
    • Do this by configuring the device IP to fall within the original 168.1.151 - 200 range and assigning the gateway as 192.168.1.2. It is critical not to use an IP that is within the DHCP range of Gateway 1.

 

As I've said I'm no expert and I don't have the equipment here to do a lab test or I would as it seems like an interesting project so hopefully this will at least get you going in the right direction.

 

 

(Just an FYI an easier fix may be to make a second profile on your machine that logs into the second network and just switch profiles?)

On 2/28/2020 at 7:34 PM, nerbonne said:

First, I did search the forums, but most topics seem to be centered around bonding or peering multiple connections thru the same switch.  My situation is somewhat different.  I have two internet connections coming thru two routers and I don't have a switch.  I have both NIC's configured, one is a static IP thru eth0, this is my main connection.  The second is DCHP (doesn't have to be, but is for simplicity), thru eth1.  I did figure out how to change a docker app to eth1, but the problem is that I can't access the web interface from my pc, as it is on the same router as eth0 is.  Therefore, how can I make it so that local traffic from one network is routed to the other just using the unraid box.

 

eth0

192.168.6.2 (static)

255.255.255.0 (subnet)

192.168.6.69 (gateway)

bonding yes

bridging yes

enable vlans no

 

eth1

172.30.1.57 (dhcp)

255.255.255.0 (subnet)

172.30.1.254 (gateway)

bonding no

bridging no

enable vlans no

the reason its not working as you would think, is that your PC (and anything else on LAN1) does not know to use Unraid to reach LAN2 (and vice versa on LAN2)

You really should have a router to unify LAN1 and LAN2 so eveything is now in LAN3 behind the router, and the router will route (or NAT) specific traffic out of LAN1 or LAN2.

 

If you really insist on doing it this way - you need to configure every device with the correct routing table

ie PC in LAN1

0.0.0.0/0 via 192.168.6.69
192.168.6.0/24 via eth0
172.30.0.0/24 via 192.168.6.2

Then all the docker containers on LAN2 need to be aware of LAN1 to respond

0.0.0.0/0 via 172.30.1.254
172.30.1.57/24 via eth0
192.168.6.0/24 via 182.30.1.57

There's probably a whole bunch of other stuff for this, and I recommend you understand exactly what you need so you can lookup what else you need.

That said as an IT professional I recommend you just grab a cheap multi-wan capable router (like the Mikrotik Hex https://mikrotik.com/product/RB750Gr3 - a sub 60USD router that can do a lot without breaking the bank) to create the LAN3 for less effort on your end.

  • Author

Ok, thanks for the replies, first of all.  Dissones4U, I did try what you suggested, and I was able to make it so I could ping both NICs from my desktop PC, but the problem was that the docker containers would not see eth1 after I did that, so I couldn't bind any dockers to the second NIC.  I reconfigured the second WAN to go thru the LAN4 port on the router, I had previously tried this but didn't know how to test to see if it was working.  I configured it again after and I put the secondary WAN as the primary (because I think it's slower) and the primary as the secondary.  Then I put rules in the WAN configuration to push my desktop PC's to the secondary WAN.  Whatismyip confirms they are going out the secondary WAN and then I looked at the PLEX remote access status and I see that it is tied to the public IP of the primary WAN.  So it seems to be a success overall.  All traffic to include PLEX and bittorrent will go out the primary WAN and anything I setup a rule for will go out the secondary.  So no more lag when my server gets busy!!  Previously, 3-4 users streaming at 2-4 Mb would make my games start to lag.  As mentioned, I have 1Gbps fiber but it's only 100Mbps cat5 into the apartment but I have two drops so at least I get 200Mpbs.  

 

Now, since I'm greedy, I'm going to try to get a third drop thru powerline adapters.... LOL.

 

Thanks again.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.