Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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