-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dynamic lease from our lease index after a static lease is added #1531
Comments
We allow static leases outside of dynamic DHCP lease range.
Once the device gets its lease - it won't request a new one until the current lease is expired. Restarting the device should force that. You can also try setting a small lease TTL (1 minute) when you're configuring a new device, then set lease TTL back to normal after you've set up a static lease. If you know the device MAC address, you can set a static lease for it before setting the device online. Otherwise, it's all expected behaviour. |
Thanks for coming back to me. I'm still having trouble with getting the end devices to get their static IP addresses though. Is there a possibility that AGH isn't flushing the reservation until a reboot sometimes? |
It may be a bug. Can you enable verbose logging? Repeat the same steps with your phone once again and attach the logs here. AGH will print the info on which leases it reserves and what DHCP packets it receives from your device. |
Hi szolin, Any more questions or tests let me know. |
Thank you for the logs!
|
I've set up my DHCP reservations outside of my DHCP scope and everything seems to be working but I thought I'd ask if this is a supported configuration?
My DHCP reservations are between 10.10.10.3 - 60 and my DHCP pool is 10.10.10.200 - 250.
Also, whats the easiest way to configure a new device to use a DHCP reservation?
I've been adding the device to the network
getting a 10.10.10.200+ address
creating a DHCP reservation from the mac address
then rebooting the device (sometimes works)
rebooting the AGH device (sometimes works)
rebooting both devices above (sometimes works)
rebooting Google wifi and the above (sometimes works)
It doesn't seem to be very consistent when trying to get the end device to use it's DHCP reservation.
It would be nice to be able to select the device in the DHCP list and create a reservation from that, and then force delete the DHCP entry so that the device gets the new DHCP reservation.
The text was updated successfully, but these errors were encountered: