From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 20:23:04 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 390D1106564A for ; Fri, 23 Apr 2010 20:23:04 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 55D7B8FC0C for ; Fri, 23 Apr 2010 20:23:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.14.3/8.14.2) with ESMTP id o3NKN1f1097741; Fri, 23 Apr 2010 15:23:01 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YPeOymUEccYB; Fri, 23 Apr 2010 15:22:59 -0500 (CDT) Received: from archangel.daleco.biz (ezekiel.daleco.biz [66.76.92.18]) by ezekiel.daleco.biz (8.14.3/8.14.3) with ESMTP id o3NKMq63097734; Fri, 23 Apr 2010 15:22:56 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4BD2019C.1080503@daleco.biz> Date: Fri, 23 Apr 2010 15:22:52 -0500 From: Kevin Kinsey User-Agent: Thunderbird 2.0.0.23 (X11/20090929) MIME-Version: 1.0 To: Onur Aslan References: <20100423131402.GA3428@localhost> <20100423152830.GA3543@localhost> <4BD1C02C.3010104@daleco.biz> <20100423160041.GB3543@localhost> In-Reply-To: <20100423160041.GB3543@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: dhcpd doesn't sent route information X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 20:23:04 -0000 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 ] [-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 ] [-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