I. Installation
# cd /usr/ports/net/isc-dhcp3 # make install
Now modify /usr/local/etc/dhcpd.conf.
# Sample dhcpd.conf
# Benjamin Bryan
# June 17, 2003
#
# DHCP Configuration for SHADOW
option domain-name "b3n.org";
option domain-name-servers 10.0.216.10;
#option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
authoritative;
ddns-update-style none;
subnet 10.0.216.0 netmask 255.255.255.0 {
# Commenting out the range will cause the dhcp server to not assign any IP addresses unless its MAC address is listed below
# range 10.0.216.10 10.0.216.254;
option routers 10.0.216.1;
# I never could get the blow to work
#option netbios-name-servers 10.0.216.11;
}
#assign IP based on hostname in DNS
host webserver {
hardware ethernet 00:0b:db:78:32:a9;
fixed-address webserver.b3n.org;
}
subnet 10.0.217.0 netmask 255.255.255.0 {
range 10.0.217.49 10.0.217.254;
option routers 10.0.217.1;
}
To start run /usr/locale/etc/rc.d/isc-dhcpd.sh start
UDP port 67 must be open.
