I am writing this little tutorial mostly as a reminder for myself for the next time I set up a DHCP server.
The tutorial at The FreeBSD Handbook in the section for setting up a DHCP Server is basically correct; but the line that reads:
Once you have finished writing your dhcpd.conf, you can proceed to start the server by issuing the following command:... just doesn't work.
# /usr/local/etc/rc.d/isc-dhcpd.sh start
I read all over the place where different people gave advice on setting up DHCP service on FreeBSD and they all refered to the Handbook and basically repeated it. Well, I guess the part about running isc-dhcpd.sh is just too obvious to explain or something. I'm thinking I'm supposed to edit the file to define my local settings or something. Anyway, I found that executing the following command line properly fires up the server:
# /usr/local/sbin/dhcpd -q -cf /usr/local/etc/dhcpd.conf ep0ep0 is the device name of the NIC in my router computer - the one that is now also functioning as a DHCP server.
So I created a file /usr/local/etc/rc.d/startdhcp.sh and put that one line in it (without the '#') and made it executable so every time I boot up that computer the DHCP service will also start.