Public domain
# cd /usr/ports/net/isc-dhcp3-server/
# make install clean && rehash
# cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf
# chmod 644 /usr/local/etc/dhcpd.conf
# vi /usr/local/etc/dhcpd.conf
ddns-update-style none;
default-lease-time 3600;
max-lease-time 7200;
subnet 10.0.5.0 netmask 255.255.255.0 {
option routers 10.0.5.1;
option domain-name-servers 4.2.2.3;
option subnet-mask 255.255.255.0;
range 10.0.5.100 10.0.5.200;
}
# vi /etc/rc.conf
dhcpd_enable="YES"
dhcpd_ifaces="rl0"
# /usr/local/etc/rc.d/isc-dhcpd start
BY: Pejman Moghadam
TAG: dhcpd
DATE: 2008-06-05 16:05:19