From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 19:04:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48EEF16A4CF for ; Mon, 8 Nov 2004 19:04:57 +0000 (GMT) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AA2743D1D for ; Mon, 8 Nov 2004 19:04:54 +0000 (GMT) (envelope-from kline@sage.thought.org) Received: from sage.thought.org (kline@localhost [127.0.0.1]) by sage.thought.org (8.13.1/8.13.1) with ESMTP id iA8J4q9n009381; Mon, 8 Nov 2004 11:04:53 -0800 (PST) (envelope-from kline@sage.thought.org) Received: (from kline@localhost) by sage.thought.org (8.13.1/8.12.10/Submit) id iA8J4qO9009380; Mon, 8 Nov 2004 11:04:52 -0800 (PST) (envelope-from kline) Date: Mon, 8 Nov 2004 11:04:51 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20041108190451.GA9036@thought.org> References: <20041105233628.GA33632@toxic.magnesium.net> <44hdo16376.fsf@be-well.ilk.org> <20041107195036.GC30315@toxic.magnesium.net> <443bzlyufp.fsf@be-well.ilk.org> <20041108035806.GA54930@toxic.magnesium.net> <44y8hcjtwk.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44y8hcjtwk.fsf@be-well.ilk.org> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 17 years of service to the Unix community User-Agent: Mutt/1.5.6i cc: Gary Kline Subject: Re: dhcpd (reprise) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 19:04:57 -0000 On Mon, Nov 08, 2004 at 09:29:47AM -0500, Lowell Gilbert wrote: > Gary Kline writes: > > > On Sun, Nov 07, 2004 at 08:56:58PM -0500, Lowell Gilbert wrote: > > > > > > No subnet declaration for dc0 (216.231.43.140). > > ** Ignoring requests on dc0. If this is not what > > you want, please write a subnet declaration > > in your dhcpd.conf file for the network segment > > to which interface dc0 is attached. ** > > > > Sending on Socket/fallback/fallback-net > > > > I've seen this before. What does the last line mean? > > Or, how do I test this? I've just tried ssh'ing > > around. Nothing to the screen. > > > This is telling you that the machine doesn't know how to assign > addresses for DHCP requests that come in on the dc0 interface. If > that's correct (i.e., you want it to assign addresses on some other > interface but not that one), then everything's fine so far. If it's > not, then you need to modify your dhcpd.conf as it said. I've got two NICs on my primary. dc0 goes to my router; dc1 goes to my hub. All are running unix. So far, I have rebooted only my laptop. I can immediately ssh from my latop *into* my primary (DNS) server, but when I try to ping anywhere from my laptop, nothing--it times out. So my dhcpd isn't handing out leases. In /etc/rc.conf I've got: dhcpd_flags="-q" # command option(s) dhcpd_conf=/usr/local/etc/dhcpd.conf # configuration file dhcpd_ifaces="dc1" # ethernet interface(s) dhcpd_withumask="022" # file creation mask So far, the dhcpd_ifaces doesn't seem to be working, although I *do* see it when I do a grep on 'sh -x on /usr/local/etc/rc.d/isc-dhcpd.sh:: + network_interfaces=dc0 dc1 lo0 + ifconfig_dc1=inet 10.0.0.1 netmask 255.0.0.0 + dhcpd_ifaces=dc1 So the script at least is reading /etc/rc.conf. Why dhcpd isn't seeing this is unknown. Here is part of my dhcpd.conf: option dhcp-server-identifier 10.0.0.1; option domain-name "thought.org"; option domain-name-servers 216.231.41.2, 66.93.87.2; option routers 10.0.0.1; option subnet-mask 255.0.0.0; server-name "sage"; server-identifier 10.0.0.1; > > If everything is okay on that front, then you need to get some of the > other machines (the ones to which this server should be assigning > addresses) to ask for leases. How to do this depends on what OS they > are running, but rebooting should do it in any case. So far, rebooting ns1.thought.org (== sage) and my laptop don't change anything. gary -- Gary Kline kline@thought.org www.thought.org Public service Unix