dhcpd doesn't sent route information
Kevin Kinsey
kdk at daleco.biz
Fri Apr 23 20:23:04 UTC 2010
Onur Aslan wrote:
> $ cat /usr/local/etc/dhcpd.conf
> option domain-name-servers 8.8.8.8, 8.8.8.4;
> option subnet-mask 255.255.255.0;
>
> default-lease-time 3600;
> max-lease-time 86400;
> ddns-update-style none;
>
> option routers 192.168.1.1;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.4 192.168.1.24;
> }
>
> host onur-pc {
> hardware ethernet 00:0e:2e:ff:6b:e7;
> fixed-address 192.168.1.2;
> }
>
> host onur-eee {
> hardware ethernet 00:22:43:45:a1:2d;
> fixed-address 192.168.1.3;
> }
>
> #####################################################################
>
> I am starting dhcpd with '/usr/local/etc/rc.d/isc-dhcpd start'. It's
> starting with this command:
>
> /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf
> /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd
> -group dhcpd ral0
>
>
> After I added dhcpd_flags="-HUP" to my rc.conf It's giving an error
> message when I starting dhcpd:
>
> # /usr/local/etc/rc.d/isc-dhcpd restart
> Internet Systems Consortium DHCP Server V3.0.7
> Copyright 2004-2008 Internet Systems Consortium.
> All rights reserved.
> Usage: dhcpd [-p <UDP port #>] [-d] [-f]
> [-cf config-file] [-lf lease-file]
> [-user user] [-group group]
> [-chroot dir] [-early_chroot]
> [-jail name ip]
> [-tf trace-output-file]
> [-play trace-input-file]
> [-t] [-T] [-s server] [if0 [...ifN]]
> Configuration file sanity check failed:
> =======================================
> Internet Systems Consortium DHCP Server V3.0.7
> Copyright 2004-2008 Internet Systems Consortium.
> All rights reserved.
> Usage: dhcpd [-p <UDP port #>] [-d] [-f]
> [-cf config-file] [-lf lease-file]
> [-user user] [-group group]
> [-chroot dir] [-early_chroot]
> [-jail name ip]
> [-tf trace-output-file]
> [-play trace-input-file]
> [-t] [-T] [-s server] [if0 [...ifN]]
> =======================================
"-HUP" is an option to kill(1). Many daemons can
be told to re-read their configuration file like this:
kill -HUP `pgrep daemonname`
where "daemonname" is something like dhcpd, named, inetd,
httpd, etc. I've never had much trouble with dhcpd, so I
may be wrong about using "kill -HUP" on it; I am fairly
certain you don't wanna flag "-HUP" in /etc/rc.conf,
though. Take it away and the "usage" message will disappear.
> It's saying 'Configuration file sanity check failed' but I don't see
> any problem in my configuration file.
Me neither, unless Chuck was also mistaken and you can't put the
"option routers" line up there, I don't think I see anything either.
Of course, my monitor's a little dusty and I think I need a stronger
eyeglass prescription :-)
If at first you don't succeed, edit, and try again? :-)
KDK
More information about the freebsd-questions
mailing list