Multiple Routers Help!

Bixmen

Ars Scholae Palatinae
902
My house has 3 levels, and wifi gets pretty spotty on the upper floor with the main router in the basement, so I have a second router connected via Ethernet to the upper floor.
Router A - DHCP on from 192.168.0.0-199 and it's connected to the fiber modem.
Router B - connected via Ethernet to the WAN port. DHCP on, and its range is 192.168.1.1-199. Notice, it's IP is on a different subnet and this router has an ip of 192.168.1.254.

What am I doing wrong? Is there a better way to set this up? What should my Subnet mask be? For the most part this setup seems to work pretty well, but my Sonos speakers are failing miserably with it. It seems some connect to 192.168.0.xxx and other connect to 192.168.1.xxx and they don't work together as a system.

Any help ideas for improvements would be much appreciated! Thanks.
 

byosys

Ars Praefectus
4,330
Subscriptor++
Edit to add: Before you make any change I'd recommend making either electronic or pen and paper back up of your network settings on both routers. It's always a pain when you go to upgrade something and instead turn a mostly working set up into a totally broken mess.

First off, what is the make/model of the routers you're using? Do you have any static IP devices on your network (NAS, etc)?

I assume you're using 2 routers for better wifi coverage (otherwise this set up doesn't make much sense) but please correct me if I'm wrong.

If you're just after wifi coverage, your best bet is to turn router B into glorified access point. Exact steps will depend on your router make/models (and you'll probably have to reboot a couple of times) but the short version is:
1. Reduce the DHCP lease space on router A to 192.168.0.0-149
2. Change the connection between A and B so that it connects to Router B's LAN port (NOT WAN).
3. Set Router B to a static IP address of 192.168.0.150
4. Set Router B DHCP to lease 192.168.0.151-250
5. Set the gateway for router B to point to router A (likely 192.168.0.0, though not clear from your post)
6. Make sure both Router A and B have the same subnet mask (probably 255.255.255.0)
 

Aeonsim

Ars Scholae Palatinae
1,299
Subscriptor++
Generally when you have two non-mesh routers connected to provide wifi you need to switch the second one (with out the direct internet connection) to bridge mode.

Assuming:
Internet <--> Router 1 <===========> Router 2.

If your set up fits it diagram, and it seems like it from your description then both systems are running there own DHCP services with seperate IP pools and subnets one on 192.168.0.x and one 192.168.1.x. This tend to cause problems as devices on different subnets won't find it easy to talk to each other. Secondly you've got double NAT set up, which can some times cause issues. ie your internet IP, gets mapped by Router 1 via NAT to the 192.168.0.x space, then one of those addresses which is assigned to Router 2 and get's mapped to 192.168.1.x.

So what is generally recommended (unless your deliberately wanting to use two subnets for some sort of rough security) is change router 2 to bridge mode, which should be available in the settings somewhere. What this does is turn off the second DHCP server/service that's running on router 2. As a result router 2 effectively acts as an ethernet/wireless switch and passes all requests straight through to router 1. Thus now Router 1 is responsible for all DHCP management and NAT management and you'll only have a single unified network on 192.168.0.x (or 192.168.1.x) if you chose to use that router. This should make everything much happier and all your devices and IoT stuff will talk to each other properly.

See https://awesometoast.com/archer-c9/ for how to do this on one of your two routers...
 

byosys

Ars Praefectus
4,330
Subscriptor++
Most home routers just don't let you tweak much in the DHCP so for the one that will be an access point only, I would just disable DHCP after you set its IP address on the LAN port. Document what IP you set it to so you can get to it again later when needed. Then connect LAN port to LAN port. Should work just great.

Today I learned that an access point can use a separate device for DHCP which, now that I actually think about it, makes complete sense. Now lets see if I can avoid the temptation to go fiddle with my currently working wifi....
 

Paladin

Ars Legatus Legionis
33,855
Subscriptor
Hehe, yeah. It's broadcast based traffic so as long as you have a single layer 2 network it is fine. The only hitch with wifi is when the access point has the feature turned on for 'wireless isolation' which blocks wired and wireless devices talking to each other. Even then it might allow DHCP but I'm not sure. But usually you don't need that turned on, you just disable DHCP, make sure the router has a unique IP address on the same LAN network as your main router and configure wifi the way you want, then connect LAN port to LAN port. We have a section in the FAQ here about it, I think.
 
Turn off DHCP on the second router and plug the ethernet cable to the rest of your network into one of its LAN ports. Give the second router a static address on the same network as your main router, but outside the main router's DHCP address pool. Using what you said in your original post, addresses outside the pool would be 192.168.0.200-254.

It's often frowned upon to use 192.168.0.x because it's such a common default subnet and may potentially interfere with VPN or other things, but if it works for you then don't worry about it.

There may also be settings in your router to set it as a dumb AP with one click, which would do all the above for you.

Be sure each router is broadcasting the same SSID with the same password and network encryption, but on different channels.
 

sryan2k1

Ars Legatus Legionis
46,882
Subscriptor++
It's often frowned upon to use 192.168.0.x because it's such a common default subnet and may potentially interfere with VPN or other things, but if it works for you then don't worry about it.


We actually highly suggest using 0.0/24 or 1.0/24 for home specifically because it's so well known and avoided if possible on the enterprise side.