How to reserve IP Address in DHCP Server

Solution 1:

In this example the DHCP server IP address reservation will use the NIC's MAC Address. You need to know the MAC address to add it to DHCP configuration file. (I will be using a dummy MAC address and IP address in the example).

To find the MAC address use ifconfig, and look for the HWaddr entry

To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo nano /etc/dhcp3/dhcpd.conf

and add the following lines:

host Accountant {
hardware ethernet 00:1F:6A:21:71:3F;
fixed-address 10.0.0.101;
}

Save file and exit.

Now the DHCP server will always assign 10.0.0.101 to the 00:1F:6A:21:71:3F MAC address.

Restart DHCP

service dhcpd restart

or

sudo /etc/init.d/dhcp3-server restart