From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 16:01:33 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FA10106567D for ; Fri, 23 Apr 2010 16:01:33 +0000 (UTC) (envelope-from onuraslan@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 886CC8FC19 for ; Fri, 23 Apr 2010 16:01:32 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so84908eye.3 for ; Fri, 23 Apr 2010 09:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=xIDiuGPo2itMiN+K5+PxeJpU/JBTAl8q1nkwCZo4QHs=; b=ZQ8Ps5K8JTwtYi/KmTsibTCPRRrHJ4hSro7lSjV+Y/HRmlhwiDoVj+J8SG6MjO93zT 76PDv2KIJ/rArpr4E3amAHR+mBWWAN1nkV7VCxyA3YB4awuJQbwaEIF/pvZqMPqnhexX csbtwwoPm1lz2t/C3609yx1GUBjPp6S+/jLgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=oFks6zfAKsmzSKDU7ILRYLLR5Hve6xFiZvn1sqQ29cqombZeUdDH6UxHZ2wADPyZWG upbjLYwUG0GnjkzifXWVFTyx4FrG4CVlIPTih6e8sNO32gwF//QVDf1JPQDzr+G3SZFC Z2M+M5RXWtjnBcB3EBCIFdOaRoTKmbuV4wTYs= Received: by 10.213.67.207 with SMTP id s15mr476452ebi.76.1272038491269; Fri, 23 Apr 2010 09:01:31 -0700 (PDT) Received: from localhost ([95.15.83.91]) by mx.google.com with ESMTPS id 16sm418557ewy.11.2010.04.23.09.01.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Apr 2010 09:01:30 -0700 (PDT) Received: from onur by localhost with local (Exim 4.71) (envelope-from ) id 1O5LKO-0000x7-L6 for freebsd-questions@freebsd.org; Fri, 23 Apr 2010 19:02:04 +0300 Date: Fri, 23 Apr 2010 19:02:04 +0300 From: Onur Aslan To: freebsd-questions@freebsd.org Message-ID: <20100423160204.GC3543@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 16:01:33 -0000 $ 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]] ======================================= It's saying 'Configuration file sanity check failed' but I don't see any problem in my configuration file. On Fri, Apr 23, 2010 at 10:43:40AM -0500, Kevin Kinsey wrote: > Onur Aslan wrote: > >I tried, but It doesn't helped. > > Please show us the revised dhcpd.conf. Also, did you -HUP > your named? > > Kevin Kinsey > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > > > >On Fri, Apr 23, 2010 at 08:22:54AM -0700, Chuck Swiger wrote: > >>On Apr 23, 2010, at 6:14 AM, Onur Aslan wrote: > >>>I am using isc-dhcp30-server-3.0.7_5 in FreeBSD 7.2. When I run dhclient in a > >>>client machine, this machine doesn't get gateway from dhcp server. I configured > >>>dhcpd server as described in FreeBSD handbook. > >>If the machine you are testing from is one of onur-pc or > >>onur-eee, you aren't > >> getting a default router because you've only defined it for the dynamic pool > >> range of .4 - .24. Move the: > >> > >> option routers 192.168.1.1; > >> > >>...statement to the top level, or move the host declarations > >>inside > >> of the subnet 192.168.1.0 block. Or copy the routers line to your > >> host declarations, I suppose. > >> > >>Regards, > >>-- > >>-Chuck >