DHCP server: ISC DHCP

Table of Contents

Configuration
dhcpd.conf

Configuration

by ross at 07:46:09 on January 28, 2014
  • Zone: local (192.168.10.0/24)
  • Server: 192.168.10.1
  • Setup fixed address (192.168.10.10) for a specific MAC
  • Auto assign address from range 192.168.10.100-200
  • Register addresses with DNS

Setup

Install Bind first.

Install dhcpd:

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

Options for isc-dhcp41-server:

  • Leave at their defaults

Add to /etc/rc.conf:

dhcpd_enable="YES"
dhcpd_ifaces="rl0"

Allow dhcpd to access named.key:

# pw groupmod bind -m dhcpd
# chmod g+r /usr/local/etc/namedb/named.key

 

Comments