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.

link|improve this question
feedback

migrated from stackoverflow.com Dec 10 '11 at 1:51

This question came from our site for professional and enthusiast programmers.

1 Answer

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;
    fixed-address 192.168.0.123;
    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.

link|improve this answer
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
feedback

Your Answer

 
or
required, but never shown

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