Date: Sat, 24 Apr 2010 09:33:59 +0200 From: Peter Boosten <peter@boosten.org> To: freebsd-questions@freebsd.org Subject: Re: dhcpd doesn't sent route information Message-ID: <4BD29EE7.10400@boosten.org> In-Reply-To: <C1426089-A51C-47E2-9BE5-3F92451878FB@mac.com> References: <20100423131402.GA3428@localhost> <C1426089-A51C-47E2-9BE5-3F92451878FB@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD29EE7.10400>