Unable to set a static IP - Incorrect warning about subnets

Hubitat C8 (2.3.7.145)

When I try to set a static IP, it is failing to do so. It's returning an incorrect error of "IP address must belong to subnet 192.168.0.xxx or you will not be able to communicate with the hub"

I want to set the IP address 192.168.2.110, default gateway of 192.168.0.1, and use a subnet mask of 255.255.252.0 (/22). The form appears to incorrectly determine that 192.168.2.110 is not in the subnet as the subnet is 192.168.0.1 - 192.168.3.254, unless I am misunderstanding what the error is complaining about. I am able to set this IP just fine when using a DHCP reservation from my router but I would rather just have a static IP for my device.

1 Like

The recommendation for Hubitat hub, is to actually set a reservation on your router. If that works for you, stick with it.

It looks like the hub cannot tell that 192.168.2.110 can use 192.168.0.1 as the gateway when setup as a /22 network. It seems to expect a 192.168.0.xxx address even though the subnet mask is set for /22.

1 Like

Here's the endpoint to set up a static address in a non /24 subnet:

5 Likes