I run my hAP Lite in 5 Host Direct mode and I'm wondering how to force the DHCP server to release an IP lease of something that hasn't been connected in some time.
A "Refresh" doesn't seem to do it
A "Refresh" doesn't seem to do it
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer
I have a possibly related issue related to DHCP reservations. I have a connection to one of my routers to a LAN port on my hAP. The router is a DHCP client and has a DHCP reservation on the hAP that has worked fine. Several weeks ago the router was upgraded - so obviously the MAC changed. I deleted the old reservation, and gave the MAC for the new router a reservation for the same 10.9.60.82 address as the old router. Since that time, the DHCP reservation has been deleted and rebuilt, the connection to the router has been removed for half a day or so, the DHCP lease has been released and renewed multiple times from the router end, there has been a firmware update on the hAP (so two restarts). The router consistently is getting the 10.9.60.86 (first non-reserved address). I'm wondering it this is related to your situation where a DHCP assignment is not being released by the hAP. I'm currently running nightly build 510.
Jim:
Did you set/reset your router's hostname to 'K6CCC-Router' ?
dhdcpd says:
Sorry, hostname '10.9.60.82', that IP address is already reserved for hostname 'K6CCC-Router',
here is a new IP address instead.
?
Chuck
In my case, I use the wireless AP in the hAP to connect to the mesh , in addition to 4 other LAN connections. One of those wireless connections is via my phone, which I only occasionally use to connect to the mesh (and its MAC is not reserved). What I found is even if my phone hasn't been connected to the hAP in days, if I look at the DHCP assignments in the GUI, the phone lease is still shown. And as the phone makes #5 lease, I cannot connect any other device to the hAP, presumably because I've run out of IPs in the pool.
Sure, I can change to 13 hosts but I don't think I should have to.
config dhcp
...
option leasetime '1h'
Is your 'some time' greater than 1 hour?
Yup, last time I tried it had been several days since my phone connected
As far as the router is concerned, the name is RB4011iGS+. The old router was RB750Gr3. The Hostname in the DHCP address Reservations table is only what it is called for OLSR device name. The reservation should be looking at the MAC.
I tried your suggestion of switching from 13 Host direct to 5 Host Direct (which causes a reboot), and then releasing the renewing the DHCP client in the router. Then changed the hAP back to 13 Host direct (and it's resulting reboot). Then released and renewed the DHCP client in the router, and it got 10.9.60.86 again. In the hAP I added the router from the Current DHCP Leases, and selected 10.9.60.82 as the desired IP addresses. Saved and rebooted the hAP again. After the hAP completed the reboot, in the router, I releases and renewed the DHCP Client, and this time I got the desired 10.9.60.82. So, your suggestion worked. Thanks!