You are here

hAP Lite release of assigned DHCP leases

13 posts / 0 new
Last post
AH6LE
hAP Lite release of assigned DHCP leases
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
K6CCC
K6CCC's picture
That would be useful.
That would be useful.
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.

nc8q
nc8q's picture
Hostname: 'K6CCC-Router' or '10.9.60.82' ?

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
 

AH6LE
In my case, I use the

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.

nc8q
nc8q's picture
hasn't been connected in some time

config dhcp
 ...
 option leasetime '1h'

Is your 'some time' greater than 1 hour?


 

AH6LE
Yup, last time I tried it was

Yup, last time I tried it had been several days since my phone connected

K6CCC
K6CCC's picture
Weeks does not matter.  The
Weeks does not matter.  The "former" IP is unavailable for extended duration (weeks).
 
nc8q
nc8q's picture
Try 13 Host Direct,
Try 13 Host Direct, reboot, revert to 5 Host Direct, reboot. To see what happens between each setting: cat /var/dhcp.leases
K6CCC
K6CCC's picture
Success.

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!
 

KK4IB
How to find what IP my HAP assigns to IP camera
How do I find what IP address the HAP-AC-Lite has assigned to an IP camera that I connected to one of the LAN "ports" RJ45 socket number 1? 
k1ky
k1ky's picture
How to find what IP my HAP assigns to IP camera
You can view active DHCP connections in the Port Forwarding/Services section in Setup on your node. It may take a little while for them to show up in the list.  Port 1 is reserved for WAN connections.  Cameras and regular devices should connect to ports 2-4 on the HAP.  Port 5 is for MESH devices connected as DTD (Device-To-Device)
KK4IB
what IP did HAP assign
OK, thanks, good start. I'm viewing the "Port Forwarding, DHCP, and Services" tab on the subject HAP setup page. I think I need to be looking at the "Current DHCP Leases" list. I see the laptop and the IP phone listed ... that's all. Maybe this means the HAP doesn't like the IP camera.
K6CCC
K6CCC's picture
That is the correct place to
That is the correct place to be looking.  Did you move the camera from port 1 to port 2, 3, or 4?  Also note that the camera in this situation MUST be configured for DHCP in order to get an address from the AREDN node,
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer