DHCP lease removal

Hi,

How can we delete dhcp leases? for us to free up IP addresses?
Thank You

Hi,

you may remove the lease from the lease file: (did not test this but should work)

Check your /var/lib/dhcp/dhcpd.leases file and check for the entry. It contains the list of all dhcp leases.
Stop dhcp server.
Remove the entry and start the dhcp server again.

rg
Christian

If you are short on IP addresses you could try to reduce the lease time.

Manually removing leases from the file as suggested might not work as a client could still use the IP!

Mastodon