Saturday, 5 October 2013

Installing dhcpd dhcp server on Raspberry Pi isc-dhcp-server

Quick notes for installing isc-dhcp-server on the pi.  Should work the same for other Debian based distros.

Install isc-dhcp-server.
sudo apt-get autoremove dnsmasq
sudo apt-get install isc-dhcp-server

Give your interface  a fixed ip.
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static

Setting isc-dhcp-server to use eth0
sudo nano /etc/default/isc-dhcp-server

Setting up the dhcpd.conf for eth0, comment out everything else
sudo nano /etc/dhcp/dhcpd.conf
ddns-update-style none;
log-facility local7;
subnet netmask {
option routers; #this is the gateway ip for your clients
option subnet-mask;
option broadcast-address;
option domain-name-servers,,;
default-lease-time 86400;
max-lease-time 86400;

To test check your syslog while running:
sudo service isc-dhcp-server start

WindyCityTech Blogger
WindyWindyCityTech Wordpress

No comments:

Post a Comment