OPNsense Forum

English Forums => 26.1 Series => Topic started by: Lip90 on February 23, 2026, 07:04:55 PM

Title: Kea DHCPv4 How to remove dynamic DHCP Lease
Post by: Lip90 on February 23, 2026, 07:04:55 PM
I have the problem that when I convert a dynamic DHCP lease to a static one, both lease entries remain. The client receives the statically assigned IP but cannot connect to the network.

There must be a way to delete this dynamically assigned lease via the GUI. I am blind and cannot find anything... Can anyone help me?
Title: Re: Kea DHCPv4 How to remove dynamic DHCP Lease
Post by: Patrick M. Hausen on February 23, 2026, 07:24:07 PM
Kea? It will be removed when it expires.
Title: Re: Kea DHCPv4 How to remove dynamic DHCP Lease
Post by: Lip90 on February 23, 2026, 10:24:01 PM
Yes, it's about kea (it's in the title). It can't be right to assign a static IP address and then wait until the dynamic lease expires so that the device can connect to the network. Is that really how it's supposed to work?
Title: Re: Kea DHCPv4 How to remove dynamic DHCP Lease
Post by: Patrick M. Hausen on February 23, 2026, 10:29:47 PM
At the moment yes, because the standard says so. Once a lease is granted it is valid for the relevant time period. Only the client can release it. OPNsense follows the book here, I don't know from the top of my head if a change is planned.

You can find part of the discussion with links to more here:

https://github.com/opnsense/core/issues/9217


If the client is Windows you can use "ipconfig something something /release".