• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Kea DHCP stops working

Scheduled Pinned Locked Moved DHCP and DNS
70 Posts 17 Posters 19.1k Views 14 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    stephenw10 Netgate Administrator @onnastick
    last edited by Jan 31, 2025, 11:45 PM

    @onnastick said in Kea DHCP stops working:

    I switched over to KEA as well just because I thought that's what the advice was, since ISC is deprecated.

    It was at release. And still is for any other hardware. However this upstream bug has since been discovered in armv7. I'm running it here and haven't yet found any full workaround.

    1 Reply Last reply Reply Quote 0
    • P Offline
      Patch @Gertjan
      last edited by Patch Feb 1, 2025, 4:34 AM Feb 1, 2025, 4:33 AM

      @Gertjan said in Kea DHCP stops working:

      2.8.0 is in the works ...

      LOL
      The pubic access to daily build has been blocked since late 2023
      pfsense Community v2.8 is a vaporware product which currently contains the majority of the pfsense redmine changes for the over 16 months through to July 2025

      Don't hold your breath waiting for it to materialise.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MacUsers
        last edited by Feb 12, 2025, 6:15 PM

        I just experienced the very same issue with Kea, running v24.11 on 8200. The newly added device was getting an IP from the dynamic pool but wasn't able to receive the IP from the static mapping. I restarted Kea service for few times, removed the lock file etc. but nothing worked, until I restartd the box. So, the issue seems to be well present in the latest version as well.

        1 Reply Last reply Reply Quote 0
        • S Offline
          stephenw10 Netgate Administrator
          last edited by Feb 12, 2025, 7:14 PM

          So you set a static mapping for a device that had a current dynamic lease but it failed to pull that until pfSense was restarted?

          M 1 Reply Last reply Feb 12, 2025, 7:57 PM Reply Quote 0
          • M Offline
            MacUsers @stephenw10
            last edited by MacUsers Feb 12, 2025, 7:58 PM Feb 12, 2025, 7:57 PM

            @stephenw10,
            yes, exactly. And the strange thing was, that auto-assigned address wasn't being displayed under Status > DHCP Leases. The only way I could see what IP has been assigned was on the device itself.

            1 Reply Last reply Reply Quote 0
            • S Offline
              stephenw10 Netgate Administrator
              last edited by Feb 12, 2025, 8:45 PM

              Are you sure the client was requesting a new lease? Or actually pulling one?

              M 1 Reply Last reply Feb 18, 2025, 9:55 PM Reply Quote 0
              • M Offline
                MacUsers @stephenw10
                last edited by Feb 18, 2025, 9:55 PM

                @stephenw10 I can confirm that static mapping for any new device is not working at all, at least for me. in last couple of days, I tried with three difrent devices and once it gets an IP from the dynamic pool, the only way to get the correct IP from the statuc maping is to reboot pfSense.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MacUsers
                  last edited by Feb 18, 2025, 9:57 PM

                  slowly thinking again, it's actually happening for me from the day one. It was for a different reasone but I reported here too:

                  https://forum.netgate.com/topic/196090/pfsense-behind-pfsense-not-getting-wan-ip-from-pfs1/7?_=1739914407057

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    stephenw10 Netgate Administrator
                    last edited by Feb 18, 2025, 11:48 PM

                    What I expect to happen here is the device keeps the dynamic IP lease until it tries to renew it.

                    If you cleared the leases in pfSense such that Kea doesn't show it at all are you sure it is actually pulling a new lease at all?

                    M 1 Reply Last reply Feb 19, 2025, 12:22 AM Reply Quote 0
                    • M Offline
                      MacUsers @stephenw10
                      last edited by Feb 19, 2025, 12:22 AM

                      @stephenw10 I forced Renew DHC Lease on my MacBook after giving it a static-dhcp IP in PFS but it was still getting the old dynamic IP. But the strange thing is, that wasn't showing up under the Status >> DHCP Leases at all.

                      I haven't seen this before and it is happening with even the old devices. I replaced by DIY box with 8200 and upgraded to v24.11 at the same time - all I can say, it started happening after one of the either.

                      Just to give it a benefit of doubt: how do I chk that device was actually pulling a new lease?

                      S 1 Reply Last reply Feb 19, 2025, 3:34 AM Reply Quote 0
                      • M Offline
                        MacUsers
                        last edited by Feb 19, 2025, 12:30 AM

                        okay, basically nothing is changng/updating related to DHCP. In one of the static-mappings, I provided custom DNS Servers (under the Server Options) and it's still showing the old DNS server address, even after restarting the client device. I'm very sure that it won't change, regardlessly what I do from/on the client side, nothing will change until I reboot the PFS box.

                        I'll restart and report here back soon.

                        G 1 Reply Last reply Feb 19, 2025, 6:37 AM Reply Quote 0
                        • S Offline
                          stephenw10 Netgate Administrator @MacUsers
                          last edited by Feb 19, 2025, 3:34 AM

                          @MacUsers said in Kea DHCP stops working:

                          Just to give it a benefit of doubt: how do I chk that device was actually pulling a new lease?

                          The logging in Kea is (currently) unhelpful for that.

                          The only way to really know for sure would be to run a packet capture when the client renews and see what's actually being sent.

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            Gertjan @MacUsers
                            last edited by Feb 19, 2025, 6:37 AM

                            @MacUsers

                            The packet capture setup for DHCPv4 :

                            e45887d8-12ea-477d-92c3-7ab0235b6e02-image.png

                            1. Select the interface you want to capture, typically LAN

                            2. The details : you want them all

                            3. It's UDP

                            4. and ports involved are 67 and 68.

                            5. Hit start.

                            6. Go to a device, and execute the DHCP Release and then DHCP renew command.

                            Get back to pfSense, and you should see a (1) packets coming in (the DHCP request) and the one packet getting send to the device with the DHCP lease info.

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            1 Reply Last reply Reply Quote 2
                            • M Offline
                              MacUsers
                              last edited by MacUsers Feb 20, 2025, 7:18 PM Feb 20, 2025, 7:16 PM

                              Okay, I do see the request hitting PFS when I release and renew the lease:

                              91a765ef-d76d-4dc7-8224-528e42cd289a-image.png

                              But no change in IP at all, as it should be 10.1.20.12 now as that's what the static mapping is now set:
                              7ac88161-a076-4456-9750-fb1bf68c745e-image.png

                              This is happening for every single devices I have tested so far. Do you need the full capture?

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                stephenw10 Netgate Administrator
                                last edited by Feb 20, 2025, 8:55 PM

                                Hmm, note that it's requesting the old IP. If you clear the client side lease cache does it get the new static IP?

                                Might need to force that in Kea. 🤔

                                M 2 Replies Last reply Feb 20, 2025, 8:59 PM Reply Quote 0
                                • M Offline
                                  MacUsers @stephenw10
                                  last edited by MacUsers Feb 20, 2025, 9:00 PM Feb 20, 2025, 8:59 PM

                                  @stephenw10 I did everything: restarted Kea, cleared client side lease, even tried with a brand new device, predefined static mapping even before pluging in - not getting the actual IP if PFS not rebooted. Trying out all the usual stuff for almost a week now.
                                  In case of the brand new device, it's getting an IP from the dynamic pool but that lease is not showing up in Status > DHCP lease at all.

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    MacUsers @stephenw10
                                    last edited by MacUsers Feb 20, 2025, 9:08 PM Feb 20, 2025, 9:06 PM

                                    @stephenw10 said in Kea DHCP stops working:

                                    note that it's requesting the old IP

                                    Question though - how it's gonna know what IP to ask for, in the first place?
                                    AFAIK, device broadcasts a DHCP Discover message to find a DHCP server and the DHCP server responds with a DHCP Offer giving it an IP. Kea should offer the IP from static-mapping and after accepting that offer (followed by a DHCP Request), it should be Acknowledged by the server - is not what happens?

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      stephenw10 Netgate Administrator
                                      last edited by Feb 20, 2025, 9:26 PM

                                      Yes, but when it's renewing it will just request the old IP. And in some cases will just request an old cached lease address anyway. The server can refuse and issue a new lease.

                                      However it sounds like it's just not seeing the new static lease entry.
                                      Do you see the reservation listed in /usr/local/etc/kea/kea-dhcp4.conf?

                                      M 1 Reply Last reply Feb 20, 2025, 10:05 PM Reply Quote 0
                                      • M Offline
                                        MacUsers @stephenw10
                                        last edited by Feb 20, 2025, 10:05 PM

                                        @stephenw10 said in Kea DHCP stops working:

                                        Do you see the reservation listed in /usr/local/etc/kea/kea-dhcp4.conf?

                                        Yes, the IP is in the file against the correct MAC
                                        cac71585-8909-462d-bdbc-dce1f6d2e4b1-image.png

                                        but looks like not being offered?

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          MacUsers
                                          last edited by MacUsers Feb 20, 2025, 10:20 PM Feb 20, 2025, 10:20 PM

                                          @RobbieTT said in KEA DHCP - lacking features:

                                          @maverickws

                                          Before it went live it was suggested that encouraging users to leave ISC for Kea was rather over done, considering its immaturity.

                                          I did switch to Kea during the beta period and it was seamless with no apparent drawbacks but once I released some basics were missing and that it was relying on previous ISC managed data to function, had me switching back.

                                          As I understand it, simple static mappings / reservations from Kea are not actually supported. However, it may give an illusion of functionality if you have run ISC previously. Existing mappings / reservations will still be resolvable as the hosts file still contains them as a hang-over from running ISC. Any new mappings added or modified will not be resolvable.

                                          To me, the ability to set a static mapping / reservation is a basic cornerstone of networking. I think there will be a cascade of confusion as and when the previous hosts file becomes out-of-date.

                                          ☕️

                                          That's a post from back in 2023 and looks like it's not fixed. I think that's exactly happening here too - the already existing records (from ISC) are working and the new ones are not at all.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]