• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 817 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 Mar 13, 2024, 1:29 AM Mar 13, 2024, 1:27 AM

    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 Mar 13, 2024, 2:25 AM Reply Quote 0
    • T
      tgl
      last edited by Mar 13, 2024, 1:43 AM

      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.

      G 1 Reply Last reply Mar 13, 2024, 6:15 AM Reply Quote 0
      • S
        SteveITS Galactic Empire @aristehney
        last edited by Mar 13, 2024, 2:25 AM

        @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 Mar 13, 2024, 3:09 AM Reply Quote 0
        • T
          tgl @SteveITS
          last edited by Mar 13, 2024, 3:09 AM

          @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 Mar 13, 2024, 3:36 AM Reply Quote 1
          • S
            SteveITS Galactic Empire @tgl
            last edited by Mar 13, 2024, 3:36 AM

            @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 Mar 13, 2024, 4:23 AM Mar 13, 2024, 4:21 AM

              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
              • G
                Gertjan @tgl
                last edited by Mar 13, 2024, 6:15 AM

                @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 Mar 13, 2024, 3:43 PM

                  @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
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received