Kea Lease issue

Started by xpking, December 08, 2024, 01:47:02 PM

Previous topic - Next topic
Dear all,

I have a PC that use Kea reservation to let Kea give it static IP.
The Lease time is 30 min.
However, I don't know what wrong. I added a new PC with Kea reservation.
Then the Lease IP in Kea is the same as Opnsense firewall.
Also, it already reached the lease time but did not go away.
I ran opnsense with Zenarmor.

I added the new entry again in Kea reservation, the PC can get the correct IP.
But it cannot connect to internet. I think because the incorrect info in Kea, then Zenarmor read it then it becomes incorrect.
Anyway to remove Kea Lease IP please?
Thank you.

i use static mappings in kea for 75% of my devices and it works perfectly.

on the 3rd tab.  have you deleted the old reservation?   you may have to reboot the device it get it to pull the new reservation

Yes, I deleted the Reservation and added new entries.
My PC can get the new IP, but the issue is the old expired lease still there (and same IP as opnsense) which is causing issue!
I tried restarted Kea, then restarted the opnsense but still the same.

Now I changed to ISC DHCPv4 so no issues now.

But I want to resolve the Kea issue.
Is there a way to clear Kea Lease IP? Or reset the settings of Kea?
Is there any expert can provide commands or provide which files to modify?

Thank you.

May I know if anyone can help please?
I just need to clear up Kea settings and leases. Thank you.

If you have already removed the DHCP pool / subnet from Kea configuration, then try leaving Kea running alongside ISC DHCP for a couple days.  Eventually Kea will run a cleanup process and should remove stale entries, after which you can disable it.

Thank you all helping this issue.
I found the way to clear the leases.

Just modify the file /var/db/kea/kea-leases4.csv or simply remove the file to clear the lease.