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

    Kea DHCP not assigning addresses

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 5 Posters 825 Views
    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.
    • A
      aristehney
      last edited by aristehney

      Hello! I've been running pfSense on a custom box with Intel NICs for about 3 years now with no issues, but recently (after the switch to Kea DHCP, I guess?) i've started to notice that addresses aren't being assigned past a point. If I clear all DHCP leases it will start working correctly and then start logging ALLOC_V4_ENGINE_ALLOC_FAIL messages after a few devices receive leases despite the pool of addresses being nowhere close to full.

      Any ideas on how to fix this? I've been trying to diagnose this for the last few days and have had no real success past temporary patch jobs by clearing leases for DHCP devices. Local name resolution also appears to have stopped working... but that's not critical for right now.

      Screenshot 2024-03-12 at 9.13.50 PM.png
      Screenshot 2024-03-12 at 9.11.05 PM.png
      Screenshot 2024-03-12 at 9.14.39 PM.png
      Screenshot 2024-03-12 at 9.14.48 PM.png
      Screenshot 2024-03-12 at 9.25.01 PM.png

      S 1 Reply Last reply Reply Quote 0
      • T
        tgl
        last edited by

        Why do you have "Ignore Client Identifiers" checked? While that doesn't have any obvious connection to your problem, I'm suspicious of it because it's a nonstandard and probably poorly-tested option.

        GertjanG 1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @aristehney
          last edited by

          @aristehney Realistically, just switch back and use Kea when it’s out of “preview.”

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          T 1 Reply Last reply Reply Quote 0
          • T
            tgl @SteveITS
            last edited by

            @SteveITS said in Kea DHCP not assigning addresses:

            Realistically, just switch back and use Kea when it’s out of “preview.”

            Oh really? They're not doing newbies any favors by labeling ISC DHCPD as "Deprecated" while not labeling Kea as "Alpha-quality". I'm new to this platform, and I selected Kea while setting up my router last week because the menu made it sound like that was the most reasonable choice. I've had enough trouble with Kea already that I'm not exactly surprised to hear that it's not thought to be release-quality ... but I feel misled.

            What happens if I just switch the "Server Backend" choice back to ISC? Do I lose my DHCP-related configuration settings? What about the lease database?

            S T 2 Replies Last reply Reply Quote 1
            • S
              SteveITS Galactic Empire @tgl
              last edited by

              @tgl You’re far from the first. :-/

              AFAIK it copies the settings back. I can’t recall if I changed anything during the short period I had it active.

              Info: https://docs.netgate.com/pfsense/en/latest/releases/2-7-1.html#kea-dhcp-server-feature-preview-now-available

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote 👍 helpful posts!

              1 Reply Last reply Reply Quote 0
              • J
                JonSmizza
                last edited by JonSmizza

                Regarding local name resolution: https://forum.netgate.com/post/1156966

                If I add the 2 missing entries back, and restart unbound, local hostname resolution works again.

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @tgl
                  last edited by

                  @tgl said in Kea DHCP not assigning addresses:

                  Why do you have "Ignore Client Identifiers" checked? While that doesn't have any obvious connection to your problem, I'm suspicious of it because it's a nonstandard and probably poorly-tested option.

                  kea ALLOC_V4_ENGINE_ALLOC_FAIL and read the first link, and several answers.

                  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 0
                  • T
                    tgl @tgl
                    last edited by

                    @tgl said in Kea DHCP not assigning addresses:

                    What happens if I just switch the "Server Backend" choice back to ISC? Do I lose my DHCP-related configuration settings? What about the lease database?

                    For the next person interested: I just switched to ISC (by flipping the radio buttons under System/Advanced/Networking), and I find that it kept all of the major DHCP settings such as lease ranges, but it just threw away the lease database. The latter's pretty unsurprising I guess given that the storage is completely different. I expect my clients will ask for their existing addresses and ISC DHCPD should grant the requests, so it should be all OK once the dust settles.

                    I don't have any statically-mapped DHCP addresses, so I can't say whether those would have been preserved. Also, it's worth taking a look at the DHCP configuration page(s) after you switch, because it seems like there's a few minor options that ISC has and Kea does not.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.