From owner-freebsd-questions Thu Dec 6 9:28:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id E6AA437B416 for ; Thu, 6 Dec 2001 09:28:47 -0800 (PST) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id fB6HQSr75246; Thu, 6 Dec 2001 12:26:28 -0500 (EST) (envelope-from mike) Date: Thu, 6 Dec 2001 12:26:28 -0500 From: Mike Barcroft To: Mike D Cc: questions@FreeBSD.org Subject: Re: dhcpd problem Message-ID: <20011206122628.E71848@espresso.q9media.com> References: <20011206075714.KVCG10846.mta07-svc.ntlworld.com@there> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011206075714.KVCG10846.mta07-svc.ntlworld.com@there>; from d01f1n@yahoo.com on Thu, Dec 06, 2001 at 07:57:02AM +0000 Organization: The FreeBSD Project Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Moved to -questions.] Mike D writes: > I'm having trouble configuring my dhcpd. > > This is the config file I've nocked up: > > -------- start config file -------------- > default-lease-time 3600; > max-lease-time 99999; > ddns-update-style ad-hoc; > option subnet-mask 255.255.255.0; > option broadcast-address 192.10.10.255; > option domain-name-servers 194.168.8.100,194.168.4.100; > option domain-name dolphintime; > -------- end config file -------------- > > When I try to start dhcpd (by running "/usr/local/etc/rc.d/dhcpd") I get the > following error: > > -------- start error message -------------- > No subnet declaration for xl1 (80.x.x.x). > ** Ignoring requests on xl1. If this is not what > you want, please write a subnet declaration > in your dhcpd.conf file for the network segment > to which interface xl1 is attached. ** > > No subnet declaration for xl0 (192.10.10.4). > ** Ignoring requests on xl0. If this is not what > you want, please write a subnet declaration > in your dhcpd.conf file for the network segment > to which interface xl0 is attached. ** > > Not configured to listen on any interfaces! > -------- end error message -------------- > > Any suggestions will be really appreciated! You should be defining your parameters inside a subnet context. Here's what part of my dhcpd.conf looks like: %%% subnet 0.0.0.0 netmask 255.255.255.0 { } subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.20 192.168.1.40; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.1; option domain-name-servers 192.168.1.1; option domain-name private; } %%% The 0.0.0.0 subnet is for an interface which I use for PPPoE, and the 192.168.1.0 subnet is for a private network. On the private network there are 20 dynamicly assigned addresses. More details are available in the dhcpd.conf(5) manual. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message