Installing DHCP server on FreeBSD   February 5th, 2010

I would like to automatically assign IP address to computers attached to my network rather than setting them manually everytime they are attached to my network. This time, I’m going to write how I install and configure the ISC DHCP on my FreeBSD Router.

What is DHCP

Dynamic Host Configuration Protocol (DHCP) is a protocol for automate the assignment of IP addresses in a network. Each computer connected to a network must have a unique IP, and without DHCP TCP/IP information must be assigned manually on each computer.

Installing ISC DHCP

The ISC DHCP server is a free implementation for the DHCP protocol. The software is available at DHCP Site

Before you install DHCP, you need to make sure the bpf device is compiled into your kernel. If you are using the default kernel (GENERIC) then it is built into your kernel by default.

To install ISC DHCP Server using ports on FreeBSD type (as root):

# cd /usr/ports/net/isc-dhcp3-server
# make install clean

Once you have finished installing, we can move on to configuring the server. A sample configuration file is located in /usr/local/etc/dhcpd.conf.sample and you can copy it or rename it to dhcpd.conf.

Configuration Read the rest of this entry »