Raspberry Pi – DHCP Server Reservation

isc-dhcp-server version 4.2.2.dfsg.1-5
Raspbian 2013-02-09-wheezy-raspbian

In this followup post to installation/configuration the ISC-DCHP-Server for your Raspberry Pi on Raspian, I walk through the process of setting up a DHCP Reservation.
YouTube Preview Image
Here is the configuration needed for a reservation –

# MacBook Pro Reservation
host MacBookPro {
hardware ethernet 58:b0:35:fe:87:d1;
fixed-address 192.168.12.35;
}

You can find the mac address of your workstation by either doing an ifconfig on a Mac or Linux system or ipconfig on a windows system. You then change the mac address in this example with the one you have. I usually assign an ip address outside of the range that is in use on the subnet I am working with.

It is a good idea to put a comment above each dhcp reservation config to make it easier to spot each reservation and the system it is designated for. As mentioned in my last post, this change will be made in the dhcpd.conf file using sudo nano /etc/dhcp/dhcpd.conf. After saving your change and exiting the file, you will need to restart the ISC-DHCP-SERVER using this command, sudo service isc-dhcp-server restart. You should be able to do a dhcp release/renew on the system in question and the new address will be assigned.

To see more of my posts about the Raspberry Pi, please go to http://www.ronnutter.com/category/raspberry-pi/

Send to Kindle
This entry was posted in Blog Entries, Raspberry Pi, Video Podcast and tagged . Bookmark the permalink.