Date: Thu, 6 Dec 2001 12:26:28 -0500 From: Mike Barcroft <mike@FreeBSD.org> To: Mike D <d01f1n@yahoo.com> Cc: questions@FreeBSD.org Subject: Re: dhcpd problem Message-ID: <20011206122628.E71848@espresso.q9media.com> In-Reply-To: <20011206075714.KVCG10846.mta07-svc.ntlworld.com@there>; from d01f1n@yahoo.com on Thu, Dec 06, 2001 at 07:57:02AM %2B0000 References: <20011206075714.KVCG10846.mta07-svc.ntlworld.com@there>
next in thread | previous in thread | raw e-mail | index | archive | help
[Moved to -questions.] Mike D <d01f1n@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011206122628.E71848>