[Solved] DHCP not assigning set static IPs?

Hey all. I'm brand new to OpenWRT so please go easy on me! :wink:

Linksys EA6350 v3
Powered by LuCI openwrt-19.07 branch (git-20.057.55219-13dd17f / OpenWrt 19.07.2 r10947-65030d81f3

I am simply trying to assign static IPs to my devices. This works as I expect it on majority of my devices. However my smart lights do not seem to work for some reason.

Using default settings on latest stable release 19.07.2. Just enabled wifi radio with security and setup a few static leases.

Tue May 12 17:18:08 2020 daemon.info dnsmasq-dhcp[11399]: DHCPREQUEST(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41
Tue May 12 17:18:08 2020 daemon.info dnsmasq-dhcp[11399]: DHCPACK(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41 yeelink-light-color4_miio8b
Tue May 12 17:19:05 2020 daemon.info dnsmasq-dhcp[11399]: DHCPREQUEST(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41
Tue May 12 17:19:05 2020 daemon.info dnsmasq-dhcp[11399]: DHCPACK(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41 yeelink-light-color4_miio8b
Tue May 12 17:20:02 2020 daemon.info dnsmasq-dhcp[11399]: DHCPREQUEST(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41
Tue May 12 17:20:02 2020 daemon.info dnsmasq-dhcp[11399]: DHCPACK(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41 yeelink-light-color4_miio8b
Tue May 12 17:20:59 2020 daemon.info dnsmasq-dhcp[11399]: DHCPREQUEST(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41
Tue May 12 17:20:59 2020 daemon.info dnsmasq-dhcp[11399]: DHCPACK(br-lan) 192.168.1.7 XX:XX:XX:XX:19:41 yeelink-light-color4_miio8b

Sets it up to 192.168.1.7 instead of 192.168.1.14. It seems to only use the Interface -> LAN -> DHCP Server settings and ignore any static leases. (12h lease expiration default vs 2m expiration in the Static Leases)

Any ideas on what to do? Again this works for most other devices fine (iPhone, nVidia Shield, Google Home Mini) and just these lights seem to be problematic. Or is there some silly setting I am missing like a networkingn00b? D:

Thanks in advance!

You have specified the wrong subnet in the Static Leases section -- for example, the "AD" unit is 192.168.0.12 in the static leases -- this is invalid because the device is connected to a different subnet (192.168.1.0/24).

The fix is simple -- edit the addresses in the static leases to be in the correct subnet (192.168.1.12 and 192.168.1.14, respectively).

1 Like

n00bmistake indeed. Was using old router subnet still. Thank you very much!

Also, why are you using such a short lease time? If anything, your static lease duration should be longer than the dynamic leases -- after all, those are devices you expect to be on your network with a specific address 'forever' -- you should make it at least 12h, maybe longer (24 hours, or maybe much much longer like a week or a month!).

1 Like

I set them short only for testing. Was waiting for them to expire. Will leave this topic for public shaming in case anyone does the same thing in future. :smiley:

Still you can mark it as [Solved]. See How to mark a topic as [Solved] for a short how-to.

1 Like

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