Kea DHCP Status only shows Static Mappings
-
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!
-
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. -
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!
-
@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" ...
-
@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.