Proper format of dhcpd.conf file

Jason Gerfen jason.gerfen at scl.utah.edu
Mon Aug 3 20:40:31 UTC 2009


Lylex Ryan wrote:
> Hello, All:
> 
> I've read through the dhcpd.conf man page a few times, but would like some advice on a couple of formatting questions for the file.
> 
> Our only network is one flat, private Class-C address space.  Only one DNS server, one gateway, some fixed-address hosts, and a range for dynamically leased addresses.  Unfortunately, we're still running 3.0.4 of the dhcp server.
> 
> Because the network is so simple, I'm defining all options, lease times, etc in the global area at the start of the file.
> 
> My question: I think of the Class-C as a network, not a subnet, but am I right that I still use the syntax of:
> 
> subnet 192.168.0.0 netmask 255.255.255.0 {
>      range 192.168.0.127 192.168.0.200;
> }
Correct. You could also specify DNS servers, min, max lease times etc.
within the subnet definition.

> 
> A second question: For the fixed-address  hosts (within the Class-C but outside the dynamic range) should I put their host definitions inside or outside the subnet block?  I'm guessing either location is ok, though I'd have to use a global "subnet-mask" option if the the host was defined outside the subnet block.
> 
Outside of the subnet definition, unless you define a pool of addresses
which would again be a range. A range could then be grouped within the
subnet definition.


> Thanks in advance...Lyle
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>       
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users


-- 
Jason Gerfen
Systems Administration/Web application development
jason.gerfen at scl.utah.edu

Marriott Library
Lab Systems PC
295 South 1500 East
Salt Lake City, Utah 84112-0806
Ext 5-9810

"Tomorrow isn't promised so we live for today"



More information about the dhcp-users mailing list