Date: Fri, 23 Apr 2010 15:22:52 -0500 From: Kevin Kinsey <kdk@daleco.biz> To: Onur Aslan <onuraslan@gmail.com> Cc: FreeBSD <questions@freebsd.org> Subject: Re: dhcpd doesn't sent route information Message-ID: <4BD2019C.1080503@daleco.biz> In-Reply-To: <20100423160041.GB3543@localhost> References: <20100423131402.GA3428@localhost> <C1426089-A51C-47E2-9BE5-3F92451878FB@mac.com> <20100423152830.GA3543@localhost> <4BD1C02C.3010104@daleco.biz> <20100423160041.GB3543@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD2019C.1080503>