The problem is as follows. I have two internet lines at my workplace. Both lead to two different routers. I have placed both routers on a switch via their lan ports and connected all wired computers to the switch.
The first router has a gateway address of 192.168.1.1 The second router has a gateway address of 192.168.1.254
I have enabled both devices to use DHCP servers with the first device having a range of 192.168.1.11 - 192.168.1.125 and the other to have a range of 192.168.1.126 - 192.168.1.253
All my wired computers are assigned static ip addresses on the first gateway with ip ranges from 192.168.1.2 - 192.168.1.10 (these are 9 computers)
I expect all the rest of the devices to connect as follows.
Devices connected wirelessly to router A get a default gateway ip of 192.168.1.1 and a DHCP ip from the range of 192.168.1.11 - 192.168.1.125
Devices connected wirelessly to router B get a default gateway ip of 192.168.1.254 and a DHCP ip from the range of 192.168.1.126 - 192.168.1.253
What happens though is that I connect my phone to SSID of router B and get a default gateway ip of 192.168.1.1 (which is the ip of router A) and an ip of 192.168.1.2 (which is an ip outside of the DHCP range of both routers)
I have really limited knowledge of networks and that is why my architecture might be bad. Any suggestions?