MarcoMC Tech, Cuisine, Traveling…my hobbies, my life

January 17, 2011

How-To flush the DHCP server lease cache

Filed under: How-To,IT,Linux,Troubleshooting — Tags: , , , , — marcomc @ 17:27

On a GNU/Linux server locate the files  dhcpd.leases and dhcpd.leases~
Mine is a Debian so the location is /var/lib/dhcpd3/ .

  1. delete the temporary file dhcpd.leases~:
    $ sudo rm dhcpd.leases~
  2. 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

comments

Powered by Facebook Comments

Powered by WordPress