From owner-freebsd-questions@FreeBSD.ORG Sat Apr 24 07:34:02 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 1AF37106564A for ; Sat, 24 Apr 2010 07:34:02 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by mx1.freebsd.org (Postfix) with ESMTP id C9A258FC1A for ; Sat, 24 Apr 2010 07:34:01 +0000 (UTC) Received: from [212.54.34.133] (helo=smtp2.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1O5ZsG-0003NC-Du for freebsd-questions@freebsd.org; Sat, 24 Apr 2010 09:34:00 +0200 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1O5ZsF-0007Oq-RE for freebsd-questions@freebsd.org; Sat, 24 Apr 2010 09:33:59 +0200 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 12FAB39849 for ; Sat, 24 Apr 2010 09:33:59 +0200 (CEST) Message-ID: <4BD29EE7.10400@boosten.org> Date: Sat, 24 Apr 2010 09:33:59 +0200 From: Peter Boosten User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20100423131402.GA3428@localhost> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1O5ZsF-0007Oq-RE X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=0.5, vereist 5, BAYES_50 0.00, CM_META_TB_NOARR 0.50, SPF_PASS -0.00) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No 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: Sat, 24 Apr 2010 07:34:02 -0000 On 23-4-2010 17:22, 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. > No, better to keep routers information together with subnet (or else you will get in trouble when adding a second subnet): subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; pool { range 192.168.1.4 192.168.1.24; } } Peter -- http://www.boosten.org