From owner-freebsd-questions@FreeBSD.ORG Sat Apr 24 09:23:29 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 87157106566B for ; Sat, 24 Apr 2010 09:23:29 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from mail.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 212AE8FC27 for ; Sat, 24 Apr 2010 09:23:28 +0000 (UTC) Received: from beta.1-16-172-dyn.locolomo.org (unknown [172.16.1.127]) by mail.locolomo.org (Postfix) with ESMTPSA id 4CC9A1C0871 for ; Sat, 24 Apr 2010 11:23:26 +0200 (CEST) Message-ID: <4BD2B88D.30609@locolomo.org> Date: Sat, 24 Apr 2010 11:23:25 +0200 From: Erik Norgaard User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20100423131402.GA3428@localhost> In-Reply-To: <20100423131402.GA3428@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 09:23:29 -0000 On 23/04/10 15:14, Onur Aslan wrote: > Do you have any idea? Still haven't solved the problem? I just looked over your dhclient.conf: #prepend domain-name-servers 127.0.0.1; prepend domain-name-servers 8.8.8.8, 8.8.8.4; #request subnet-mask, broadcast-address, time-offset, routers, # domain-name, domain-name-servers, domain-search, host-name, # netbios-name-servers, netbios-scope, interface-mtu, # rfc3442-classless-static-routes, ntp-servers; request subnet-mask, broadcast-address; Seems like you don't request router information. As for dhcpd.conf, I don't know if you have a real need to keep static addresses, if you do use fixed-address then your dhcpd.conf can only be good for that subnet. I have: subnet 192.168.0.0 netmask 255.255.254.0 { # Server subnet default-lease-time 3600; max-lease-time 86400; option routers 192.168.0.1; option domain-name-servers ns1.example.com; option domain-name "example.com"; pool { range 192.168.1.1 192.168.1.127; deny unknown-clients; } pool { range 192.168.1.128 192.168.1.254; allow unknown-clients; } } group { use-host-decl-names on; host myhost { hardware ethernet 00:ab:cd:de:f0:12; } } With this my host declarations are good for any subnet I may define, and I can set special options for known clients as needed - say I only want to send router information to known clients, unknown clients will only have access to the local network. Of course, this kind of security is easy to circumvent. But I do use it to avoid non-diskless clients suddenly booting off the network. BR, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org