Setup 2 routers to share one internet connection

Started by bunter2000, April 06, 2022, 11:18:16 AM

Previous topic - Next topic
Hi all I am a newbie and a novice to boot, so if my question is dumb or obvious to the gurus I appologise in advance. I first started out using PFsense and could not work out how to do what I want. Opnsense seems more user friendly so I thought I would give it a try.

I am using a ITX celeron motherboard with 4Gb RAM and an additional GB lan card. The mother board has 2 x Gb LAN ports built in, my wish is to route the NBN modem via the Opnsense box.
Additional LAN card as WAN and the onboard ports as LAN 1 and LAN 2 (but I get OPT1??) with different IP range and subnets.
The LAN ports I assume I would set up as DHCP conected to 2 seperate WIFI routers via the routers WAN ports.

One router is an ASUS RT-AC68U (Asuswrt-merlin) for my main network with permanent VPN (via the ASUS router) for all PC's, NAS and mobiles etc.
The second router (TP-Link D9) for Xbox, security system, guest wifi, 3D printer etc.

I can get it to a stage where the LAN port and OPT1 seem to follow the IP range of the other, I initially set up one IP range as 192.168.20.XX/24 and the other as 10.0.10.XX/16. One network comes up working but when I log into the second router the default gateway (DHCP) is the gateway for the LAN 192.x.x.x network.

I was also trying to set up the NAS with each LAN port configured for eack network, but can only access via the 192.x.x.x network.

I dont expect someone to help configure my entire network but a few pointers to guide me in the correct direction. Or an article or forum link with someone that has done this previously.

Thanks again to anyone who can answer.

At least to me, is unclear what you want to achieve exactly. 2 routers to share one internet connection can be interpreted in more than one way.
My suggestion, draw it and the components, ideally with network segments and devices and which ones will do what i.e. being a gateway, doing dchp server duties, etc. As a minimum it will clarify in your mind what the setup could be.

December 15, 2022, 08:41:48 PM #2 Last Edit: December 17, 2022, 10:55:10 PM by Razzumash
Welcome to the forum! It sounds like you have a complex setup you are trying to configure, and it can be overwhelming to get everything working correctly. It seems you are on the right track, but a few pointers may help you get over the hump. Have you tried setting up static IPs for each router? You may need to do this for the ASUS router to ensure you get the VPN connection you need.
Additionally, you may need to adjust the DHCP settings for your LAN ports to ensure that each router's default gateway is different. I also think this guide (https://www.192168o1.com/) might come in handy in your situation. Good luck, and lmk if you have any other questions!

Quote from: bunter2000 on April 06, 2022, 11:18:16 AM
Hi all I am a newbie and a novice to boot, so if my question is dumb or obvious to the gurus I appologise in advance. I first started out using PFsense and could not work out how to do what I want. Opnsense seems more user friendly so I thought I would give it a try.

I am using a ITX celeron motherboard with 4Gb RAM and an additional GB lan card. The mother board has 2 x Gb LAN ports built in, my wish is to route the NBN modem via the Opnsense box.
Additional LAN card as WAN and the onboard ports as LAN 1 and LAN 2 (but I get OPT1??) with different IP range and subnets.
The LAN ports I assume I would set up as DHCP conected to 2 seperate WIFI routers via the routers WAN ports.

One router is an ASUS RT-AC68U (Asuswrt-merlin) for my main network with permanent VPN (via the ASUS router) for all PC's, NAS and mobiles etc.
The second router (TP-Link D9) for Xbox, security system, guest wifi, 3D printer etc.

I can get it to a stage where the LAN port and OPT1 seem to follow the IP range of the other, I initially set up one IP range as 192.168.20.XX/24 and the other as 10.0.10.XX/16. One network comes up working but when I log into the second router the default gateway (DHCP) is the gateway for the LAN 192.x.x.x network.

I was also trying to set up the NAS with each LAN port configured for eack network, but can only access via the 192.x.x.x network.

I dont expect someone to help configure my entire network but a few pointers to guide me in the correct direction. Or an article or forum link with someone that has done this previously.

Thanks again to anyone who can answer.

What's the point of all of this??
What exactly are you trying to achieve?