[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: dhcpd.conf question

Craig White wrote:
On Sun, 2006-03-12 at 17:26 -0600, Bob Hartung wrote:
Hi all,
I'm beginning to think that some of the dhcpd docs are wrong or perhaps I can't read. I am trying to write a simple dhcpd.conf file for a machine with a single NIC. This will assign a small subset of the subnet for automatic assignment and will assign a fixed ip address to a small NAS appliance that I purchased.

The code (below) fails on /etc/dhcpd start.  What did I miss?

ddns-update-style      interim;
ignore client-updates;

#subnet netmask{

#default-lease-time     600;
#max-lease-time       86400;

#option subnet-mask;
#option domain-name-servers,;
#option routers;

subnet netmask {
    default-lease-time	600;
    max-lease-time     86400;

    option domain-name-servers  xxx.yyy.zzz.rrr, xxx.ddd.ttt.ooo;
    option routers;

    host simpleshare {
	hardware ethernet 00:01:6c:bd:1d:90;
         option host-name  simpleshare;
from a brief look at it...a closing brace at the end...easier to notice
these things if you follow an indentation structure more closely.


Where is the mis-match, exactly? I count 3 opens and 3 closes. 3 sets. 1 set is commented out and the other two are properly nested in the remainder. Am I missing something?

/I got Freedom,...I got freedom in my code (FC3/FC4)/
Registered Unix <http://counter.li.org> user #409453

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]