Sun Aug 09, 2020 11:46 pm
The gateway has to be in the same local subnet as any other devices in that local network to be reachable. However, a subnet doesn't need to be limited to 255 IP addresses. The set of IP addresses in a subnet is determined by the subnet mask.
So if you want to use a gateway IP address of 192.168.10.1 and a device IP address of 192.168.0.100, then the subnet mask will need to be something like 255.255.0.0 in order for the gateway to be reachable from the device.
If you set the subnet mask to 255.255.255.0 then this would require that the first three segments of the IP address are the same (e.g. a gateway IP address of 192.168.10.1 and device IP of 192.168.100).
So you should probably check with your IT department to see what the correct subnet mask is for your local network.