Kea DHCP Server config changes not applied until reboot
-
v24.11
I am finding that changes to
Server Options - DNS Servers,
and
DHCP Static Mappings
are not getting applied to Kea DHCP Server UNTIL I reboot pfSense+.Restarting the DHCP Service does not help - a reboot is the only way the changes will take effect.
Has anyone else seen this?
-
@KB8DOA
I think that is what I'm seeing as well... but I don't want to eat up your thread on my speculation. I'll be posting my request for help/bug report as soon as I finish typing it.Rick
Update: YES, that did resolve my issue with KEA DHCP this weekend. I mentioned you in my post of this morning. Thanks for posting this and your timing was spot-on!
-
@KB8DOA I'm running 24.11 with KEA for some time and did not notice that.
Are the client(s) not picking up the reservation? If yes what are the lease times?
Does reboot the client help? And I assume the static reservation is outside of the DHCP pool?
Applied any or all available patches for 24.11 (if not install the System_Patches package)For testing I just booted up a client and set a DHCP reservation. Took the interface on the client down and up again. Voila, the assigned IP was handed out. The lease time is set to 3600 for that LAN.
-
Now - go and change that client's reserved IP address and watch as the client will not pick up the change after you save it...
Default DHCP time.
Reboot of client, it just gets issued the old IP address.
Yes - the reservation is outside the Static Pool.
Patches? Really?
I keep running update - and all seems updated.If there is something specific to KEA DHCP in the patches, I am willing to apply the patches.
Best Practice is to keep the updates current and not to apply patches unless specific fix is needed.
However this is common DHCP operation, which I would expect has been fixed in an update - not a "patch"...
-
@KB8DOA There was one patch related to KEA and I applied that weeks ago. It had no impact on the problem I had this weekend or the issue you are working on.
Rick
-
@KB8DOA said in Kea DHCP Server config changes not applied until reboot:
Now - go and change that client's reserved IP address and watch as the client will not pick up the change after you save it..
Did change the reservation and the client picket it up, it does work for me.
From dynamic (.102, range .100 - .199) to static mapping (.78) to another static mapping (.40). For the last change it took a minute or so after the link up on the client. -
I will try applying the patches tonight when I reboot the pfsense.
-
No patches avail:
-
@KB8DOA
The one patch I found for Kea was for the plus version 24.11. I had applied it a week or so back. Made no difference in my issues last night and today.Fix Kea failure with per-pool settings for Default or Maximum Lease Time (If this patch offers both Apply and Revert actions, do not Revert, Redmine #15332)
Bill Meeks left an informative note on my issue about significant differences between the Kea versions for CE and Plus. But even those differences didn't make Kea work for my problem. Thanks for posting on the reboot. That is the only thing I could do to fix my issue.
-
@KB8DOA There should be a lot. Did you update the patches package?
-
@KB8DOA said in Kea DHCP Server config changes not applied until reboot:
Restarting the DHCP Service does not help - a reboot is the only way the changes will take effect.
cat /usr/local/etc/kea/kea-dhcp4.conf
and hit execute.
Keep te screen open, and open another pfSense GUI, and go to the DHCPv4 settings pages.
Now : compare.
Most, if not all, what is shown in the file is easy to understand.
The (your) question : what setting is present in the GUI that you can't find in the config file ?
-
I am not saying that the conf file and GUI are different.
What I am saying is that the GUI/conf changes do not get applied until I reboot pfSense.I have verified, and the changes I made are already in the conf file.
Also - just to clarify - I am using the default DHCP Lease time.2 examples:
Change DNS Servers for an interface:
- the devices on that interface keep renewing for weeks and are still using the old DNS Servers...
- upon rebooting, all the devices will start using the new DNS Servers.
Assign Static Mapping of IP:
- the device will continue to keep renewing and using the default ip address assigned from the Pool for weeks...
- upon rebooting, the device will start using the Static IP Address that has been assigned to it.
-
Had it happen again.
After rebooting pfSense+, the DHCP server finally issued the correct IP Address to the DHCP Client.
Does anyone else want me to try something?
-
You are welcome.
I am going to start looking into going back to ISC DHCP.
Even though it is EOL, at least it is not Beta...
-
@KB8DOA said in Kea DHCP Server config changes not applied until reboot:
Had it happen again.
If you have some spare moments, run this while using ISC, and Kea :
and hit the start button.
You'll see the DHCP "client" requests in real time, the ones reaching your pfSense DHCP server, and the DHCP server answers.