Is there a way to set the lease for a single dhcp client to a very short time in isc dhcp? I'm trying to do this for troubleshooting purposes but I don't want to potentially end up handing out duplicate IPs.


You could try setting up a host statement for the single client you are testing with (not sure if this will work), so somewhere in your dhcpd.conf file you add:

host test-client {
    hardware ethernet 00:00:00:00:00:00;
    default-lease-time 1024;

You'll need to fill in the desired values for these, including your test client's mac-address (hardware ethernet). Choose a unique fixed address that is outside of your dhcp pool, and set the desired lease time.

  • This question is more appropriate for a site like ServerFault, where they can help you with sysadmin/pc support stuff. – Federico B. Dec 10 '11 at 0:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.