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

Re: dhcpd.conf question



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 
> 192.168.14.0 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 192.168.14.0 netmask 255.255.255.0{
> 
> #default-lease-time     600;
> #max-lease-time       86400;
> 
> #option subnet-mask 255.255.255.0;
> #option domain-name-servers  204.127.203.135, 204.148.225.135;
> #option routers     192.168.14.249;
> #}
> 
> subnet 192.168.14.0 netmask 255.255.255.0 {
>     range 192.168.14.80 192.168.14.95;
>     default-lease-time	600;
>     max-lease-time     86400;
> 
>     option domain-name-servers  xxx.yyy.zzz.rrr, xxx.ddd.ttt.ooo;
>     option routers   192.168.14.249;
> 
>     host simpleshare {
> 	hardware ethernet 00:01:6c:bd:1d:90;
>          fixed-address     192.168.14.96;
>          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.

Craig


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