dhcpd.conf question

Bob Hartung rwhart at mchsi.com
Mon Mar 13 02:35:06 UTC 2006


tim et al,
   The problem was that the host name needs quotes.  With that change if 
dhcpd started up okay.

Thanks,

Bob

Tim wrote:
> On Sun, 2006-03-12 at 17:26 -0600, Bob Hartung wrote:
> 
> 
>>I'm beginning to think that some of the dhcpd docs are wrong
> 
> 
> I found errors with it before.  I can't remember what they were, now.  I
> seem to recall it was something to do with braces and semi-colons being
> incorrectly shown in examples.
> 
> 
>>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?
> 
> 
> In what way does it fail?
> 
> 
> 
>>ddns-update-style      interim;
>>ignore client-updates;
> 
> 
> Mine needs this in it:
> 
>   include "/etc/rndc.key"; 
> 
> (It's the same key used by BIND)
> 
> 
>>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;
> 
> 
> Are you hiding your domain name servers or do you actually have those
> letters in there?  Don't forget that since you've using dynamic DNS
> updates, they need to be DNS servers that you can send updates to.
> 
> 
>>    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;
>>    }
>>}
> 
> 
> I have hostnames in quotes, though I haven't checked if that's
> essential.
> 
> e.g. "simpleshare";
> 




More information about the fedora-list mailing list