Setting a static lease outside of IP range

Hey,

My LAN IP range is 192.168.2.1/24 and DHCP start I set to 50 limit 150.
What I have is a device that comes out from factory set to static IP of 192.168.1.64 what I need to do is to set it's MAC address that I can see in the list for assigning static leases to 192.168.1.64 and I should be able to access it's config panel and enable DHCP or reassign it's IP to something in my range.
Then I use luci and try to set custom IP I get an error The IP address is outside of any DHCP address range. I tried to add a secondary range of 192.168.1.1/24 to lan interface, however, that did not seam to help.
Any advice?

If your device is currently set to a static IP on a different subnet than you are using on your router, you need to directly connect to it so that you can reconfigure it to use DHCP. You cannot assign a DHCP reservation for a subnet that you're not actually using, and besides it wouldn't matter until the device is set to use DHCP in the first place.

The typical approach is to directly connect this device to your computer (no other network connections -- literlaly just the computer to device), and set your computer's IP address to static 192.168.1.x where x is 1-254 excluding 64 which is used by your device. Then use whatever configuration method is required (web or ssh or other utility) and connect to 192.168.1.64, change your device's IP address to be obtained via DHCP, and then connect it to your router.

I know that plugging device into PC/laptop will work... I just plugged in the device in remote hard to get location and though I may be able to access it via router because I can see it's MAC on the list and now sitting at remote location trying to figure out how access via router to not have to drive.

You have remote access to this router?

Can you draw a topology diagram to understand how this is connected to the network?

remote-cam.drawio
I use tailscale as VPN it can override local IPs in remote machine and function as defacto VPN. making it seam that my remote PC is in the local network or as if it is the connecting from the router itself.
Tailscale adds an extra interface that I joined to LAN firewall rules.

With an unmanaged switch, it won’t be possible to put the camera on a different vlan for configuration. My hope had been that it was directly connected to a port on the router or via a managed switch - from there, you could set that port specifically to the 192.168.1.0/24 subnet while leaving g the rest of the network as is.

I think, however, you will not have any option to configure that device without either changing the entire network to the 192.168,1.0/24 subnet or physically connecting to the camera as discussed earlier.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.