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

Kea DHCP Status only shows Static Mappings

Scheduled Pinned Locked Moved DHCP and DNS
5 Posts 2 Posters 227 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.
  • L
    leeroy
    last edited by Feb 15, 2025, 11:05 PM

    System Information:

    • Hardware: Netgate 6100
    • BIOS: INSYDE Corp.
      • Version: CORDOBA-03.00.00.03t
      • Release Date: March 17, 2023
      • Boot Method: UEFI
    • Software Version: 24.11-RELEASE (amd64)
      • Built on: Thu, Nov 21, 2024, 20:34 PST
      • FreeBSD 15.0-CURRENT

    Issue Description:
    Since switching to Kea DHCP, only static mappings are visible on the DHCP status page. Although Kea assigns addresses correctly, dynamically assigned leases do not appear on the status page.

    Additionally, the following warning repeats frequently in the logs:

    WARN [kea-dhcp4.alloc-engine.0xe8d36417400] ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT conflicting reservation for address 192.168.1.100 with existing lease Address: 192.168.1.100 Valid life: 7200 Cltt: 1739524088 Hardware addr: Client id: Subnet ID: 2 Pool ID: 0 State: default Relay ID: (none) Remote ID: (none) User context: { "Netgate": { "option-data": { "domain-name": "foobarbaz" } } }
    

    To try and resolve the issue myself, I installed all optional recommended patches. After a reboot, dynamically assigned leases briefly appeared on the status page, but the issue returned shortly after. Any suggestions for resolving the status page issue or addressing the address conflict errors are appreciated!

    G 1 Reply Last reply Feb 17, 2025, 8:33 AM Reply Quote 0
    • G
      Gertjan @leeroy
      last edited by Feb 17, 2025, 8:33 AM

      @leeroy

      Your static leases are all outside of the declared pool ?

      Try this :
      Stop kea.
      Delete the DHCP4 leases file : /var/dhcpd/var/db
      delete both dhcpd.leases~ and dhcpd.leases ( or rename to dhcpd.leases.old~ and dhcpd.leases.old)
      Start kea.

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

      L 1 Reply Last reply Feb 17, 2025, 6:09 PM Reply Quote 0
      • L
        leeroy @Gertjan
        last edited by Feb 17, 2025, 6:09 PM

        Hi @Gertjan,

        Yes, all my static leases are outside the declared pool.

        I tried stopping Kea, deleting the lease files, and restarting Kea, but nothing changed. It also didn’t seem to regenerate the lease files.

        After a reboot, functionality was restored, but oddly, the lease files are still missing. Should I be creating an empty file or restoring the previous files? I imagine the dynamic entries will disappear after some time on the status page.

        I’m happy to try a few more things this evening if you have any other suggestions. For now, everything is working, but I’m puzzled by the missing lease files.

        Thank you for your help so far!

        G 1 Reply Last reply Feb 18, 2025, 7:23 AM Reply Quote 0
        • G
          Gertjan @leeroy
          last edited by Feb 18, 2025, 7:23 AM

          @leeroy said in Kea DHCP Status only shows Static Mappings:

          It also didn’t seem to regenerate the lease files

          I'm sorry, these are the wrong files ... these are the ISC lease files 😖

          Look here : /usr/local/etc/kea/kea-dhcp4.conf - line number 13 : here are the kea leases : "/var/lib/kea/dhcp4.leases" ...

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

          L 1 Reply Last reply Feb 20, 2025, 7:57 PM Reply Quote 0
          • L
            leeroy @Gertjan
            last edited by Feb 20, 2025, 7:57 PM

            @Gertjan No problem! I'll have another opportunity to look into this on Friday and will report back. For now, everything seems to be working fine since the reboot.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received