On a GNU/Linux server locate the files dhcpd.leases and dhcpd.leases~
Mine is a Debian so the location is /var/lib/dhcpd3/ .
- delete the temporary file dhcpd.leases~:
$ sudo rm dhcpd.leases~
- flush the lease cache dhcpd.leases:
$ sudo echo "" > dhcpd.leases
the next time the clients will request a lease they will probably obtain a different IP respect the one they had before.
Comments
Powered by Facebook Comments
Thanks, this easy solution made me feel silly for not thinking about it myself 😐
I was wondering if you knew how to delete the dhcp leases from 10.8 OSX Server, as the above do not work with 10.8. If you could help it would really be appreciated. thanks
sorry, but I don’t have any 10.8 server installation handy, whare I could try something.. sorry.
[…] NB: This post is not mine, all credit goes to MarcoMC […]
You should use cat instead:
# cat /dev/null > /path/to/dhcp.leases
That way you don’t have to run rm in a root directory.