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.

subnet netmask {
	option domain-name-servers;
	option dhcp-server-identifier;
	option netbios-name-servers;
	option broadcast-address;
	option ntp-servers;
	option routers;
	default-lease-time 21600;
	max-lease-time 43200;
	filename "gpxelinux.0";
# Desktop Fixed Address
host 81U1 {
	hardware ethernet c8:f7:33:22:6c:4e;
# Phone Fixed Address
host DROID {
	hardware ethernet fc:c2:de:bd:14:9a;

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.

service isc-dhcp-server restart
Did you find this article useful? Why not share it with your friends?

Leave a Reply

Your email address will not be published.

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