After searching Google and reading through the FreeBSD handbook I am unable to successfully configure the dhcp server on my FreeBSD 9 machine. I am able to get the dhcp server running on OpenBSD very easy but when I use the same configuration contents in the FreeBSD like I would with not only OpenBSD but with distributions like Ubuntu, Debian and Fedora. I have been trying but have had no success up to now. This is what I did.
I run the sysinstall command to get the packages for the isc-dhcp-server. after doing that I put these two lines in the rc.conf file.
Now I added some settings to the configuration file in /usr/local/etc/dhcpd.conf file
The I rebooted the machine and the dhcp server isn't working I attempted to start the daemon manually for troubleshooting purposes to see what is going on and I get a message saying that "no subnet declaration for le0 has been declared", I clearly put the subnet declaration in the configuration file. Then it goes on telling me that "not configured to listen on any interfaces" I know that I have put the following line in the /etc/rc.conf file.
I am at a loss here because these error messages don't make any sense. I need the help and I would really appreciate it.
I run the sysinstall command to get the packages for the isc-dhcp-server. after doing that I put these two lines in the rc.conf file.
Code:
dhcpd_enable="YES"
dhcpd_ifaces="le0"
Code:
option domain-name-servers 192.168.1.2;
option domain-name "baronobeefdip.net";
option subnet-mask 255.255.255.0;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.70 192.168.1.254;
option routers 192.168.1.1;
}
Code:
dhcpd_ifaces="leo"