DHCP lease removal

dhcp

#1

Hi,

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


#2

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


#3

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!