ISC DHCP Server Static Lease

If you are using ISC DHCP Server on either Debian or Ubuntu, you may have the need to setup static leases for network clients such as printers, switches, etc. If that is the case, then this article is for you. Below we will show you how to assign a static dhcp lease to any network client be serviced by your ISC DHCP server. First you will need to open the main DHCP configuration file /etc/dhcp/dhcpd.conf. Once open, you will want to add the following code directly below your subnet declaration.

Note: In the example above, the “81U1” defined after host is the actual hostname of the machine that will be receiving the fixed lease. Also note that hardware ethernet refers to the MAC Address of the host “81U1”.

Once these changes are made, simply restart your DHCP Server with the command below. Once that is complete you can disable and then re-enable the network adapters on the clients you have defined the fixed leases for and they should get the IP addresses you declared in the conf file.

Did you find this article useful? Why not share it with your friends?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.