Fw: dhcp-3.0.1-58.EL4---plz help

Glenn Satchell Glenn.Satchell at uniq.com.au
Wed Nov 29 10:51:23 UTC 2006


The error message:

/etc/dhcpd.conf line 12: option definitions may not be scoped.

means that you may only define an option in the global scope, ie
outside the subnet definition. Therefore move this line to before the
'subnet ...' line.

option wpad-url code 252 = text;
subnet 192.168.168.0 netmask 255.255.255.0
{
	option subnet-mask 255.255.255.0;
	option domain-name "test.ro";
	option routers 192.168.168.1;
	option domain-name-servers 10.3.0.10;
	option wpad-url "http://192.168.168.1/wpad.dat";
	range dynamic-bootp 192.168.168.50 192.168.168.250;
	default-lease-time 86400;
	max-lease-time 86400;
}

regards,
-glenn

>From: "Munteanu Nicusor" <nicusor.munteanu at gmail.com>
>To: <dhcp-server at isc.org>
>Subject: Fw: dhcp-3.0.1-58.EL4---plz help
>Date: Wed, 29 Nov 2006 09:42:31 +0200
>
>
>Hy
>
>I need some help with this option. It's supported by this version?
>
>TKS
>
>_______________________________________________________
>[root at dhcpd etc]# service dhcpd start
>Starting dhcpd: Internet Systems Consortium DHCP Server V3.0.1
>Copyright 2004 Internet Systems Consortium.
>All rights reserved.
>For info, please visit http://www.isc.org/sw/dhcp/
>/etc/dhcpd.conf line 12: option definitions may not be scoped.
>option wpad-url code
>       ^
>/etc/dhcpd.conf line 13: unknown option dhcp.wpad-url
>option wpad-url "http://192.168.168.1/wpad.dat"
>       ^
>Configuration file errors encountered -- exiting
>
>If you did not get this software from ftp.isc.org, please
>get the latest from ftp.isc.org and install that before
>requesting help.
>
>If you did get this software from ftp.isc.org and have not
>yet read the README, please read it before requesting help.
>If you intend to request help from the dhcp-server at isc.org
>mailing list, please read the section on the README about
>submitting bug reports and requests for help.
>
>Please do not under any circumstances send requests for
>help directly to the authors of this software - please
>send them to the appropriate mailing list as described in
>the README file.
>
>exiting.
>                                                           [FAILED]
>[root at dhcpd etc]# rpm -q dhcp
>dhcp-3.0.1-58.EL4
>[root at dhcpd etc]# cat /etc/dhcpd.conf
>ddns-update-style ad-hoc;
>
>#
># DHCP Server Configuration file.
>#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
>subnet 192.168.168.0 netmask 255.255.255.0
>{
>option subnet-mask 255.255.255.0;
>option domain-name "test.ro";
>option routers 192.168.168.1;
>option domain-name-servers 10.3.0.10;
>option wpad-url code 252 = text;
>option wpad-url "http://192.168.168.1/wpad.dat";
>range dynamic-bootp 192.168.168.50 192.168.168.250;
>default-lease-time 86400;
>max-lease-time 86400;
>}
>[root at dhcpd etc]#
>
>
>
>
>


More information about the dhcp-users mailing list