Консоль:
Код: Выделить всё
root@wwwmath:~ # /usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
/usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed
Код: Выделить всё
Aug 24 22:00:45 wwwmath dhcpd: Internet Systems Consortium DHCP Server 4.3.2
Aug 24 22:00:45 wwwmath dhcpd: Copyright 2004-2015 Internet Systems Consortium.
Aug 24 22:00:45 wwwmath dhcpd: All rights reserved.
Aug 24 22:00:45 wwwmath dhcpd: Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-tf trace-output-file] [-play trace-input-file] [-pf pid-file] [--no-pid] [-s server] [if0 [...ifN]]
Aug 24 22:00:45 wwwmath dhcpd:
Aug 24 22:00:45 wwwmath dhcpd: If you think you have received this message due to a bug rather
Aug 24 22:00:45 wwwmath dhcpd: than a configuration issue please read the section on submitting
Aug 24 22:00:45 wwwmath dhcpd: bugs on either our web page at www.isc.org or in the README file
Aug 24 22:00:45 wwwmath dhcpd: before submitting a bug. These pages explain the proper
Aug 24 22:00:45 wwwmath dhcpd: process and the information we find helpful for debugging..
Aug 24 22:00:45 wwwmath dhcpd:
Aug 24 22:00:45 wwwmath dhcpd: exiting.
rc.conf
Код: Выделить всё
dhcpd_enable="YES"
dhcpd_iface="em0"
dhcpd_flags="-4"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_whisumask="022"
dhcpd_chuser_enable="YES"
dhcpd_withuser="dhcpd"
dhcpd_withgroup="dhcpd"
dhcpd_chroot_enable="YES"
dhcpd_devfs_enable="YES"
dhcpd_rootdir="/var/db/dhcpd"
dhcpd_includedir="/usr/local/etc"
Код: Выделить всё
option domain-name "site.ru";
option domain-name-servers 192.168.86.67;
default-lease-time 86400;
max-lease-time 86400;
authoritative;
log-facility local7;
ddns-update-style none;
subnet 192.168.86.64 netmask 255.255.255.224 {
range 192.168.86.66 192.168.86.66;
option routers 192.168.86.65;
option subnet-mask 255.255.255.255;
}