OPNsense Forum

English Forums => 26.7 Series => Topic started by: Lecso11 on October 12, 2026, 03:07:57 PM

Title: How to remove stuck DHCP lease
Post by: Lecso11 on October 12, 2026, 03:07:57 PM
I have defined a few static leases for devices I always want on the same address. However after upgrading these devices I cannot release the old lease reserved for the old MAC address. These leases have the epxiration date of 1970-01-01 01:00:00.
How can I delete these entries?
Title: Re: How to remove stuck DHCP lease
Post by: Nullman on October 12, 2026, 03:20:12 PM
Remove static entry, restard DHCP service, restart the client and see if it receives IP address other than static entry. If it does, re-create the static entry, and you should be good.
Title: Re: How to remove stuck DHCP lease
Post by: DROOG on October 12, 2026, 06:34:27 PM
I'm experiencing the same issue with a device I no longer have connected. I removed the static lease but appears as a dynamic lease with that same expiration date of 1970-01-01 01:00:00. I don't know how to get rid of that lease.
Title: Re: How to remove stuck DHCP lease
Post by: Patrick M. Hausen on October 12, 2026, 06:47:32 PM
Which DHCP server? There should be a button to delete a lease at the right. Do you use a UI theme?
Title: Re: How to remove stuck DHCP lease
Post by: nero355 on October 12, 2026, 07:35:53 PM
Quote from: Patrick M. Hausen on Today at 06:47:32 PMThere should be a button to delete a lease at the right.
KEA does indeed, but IIRC from some topics DNSmasq does not ?
Title: Re: How to remove stuck DHCP lease
Post by: Patrick M. Hausen on October 12, 2026, 07:38:30 PM
ISC did, Kea does. Sorry, I expected DNSmasq to have the same feature. Especially because DNSmasq was pushed as *the* ISC replacement first.

I am very satisfied with Kea at its current state. Thanks for all the work that went into this!