[TriLUG] Setting up a DHCP server

Alan Porter porter at trilug.org
Mon Nov 3 07:24:49 EST 2008


 > I'm trying to set up a DHCP server for my home network
 > and I'm having trouble understanding even the basics.

My personal opinion is that most DNS and DHCP servers are
harder to understand than they should be.

I recommend giving "dnsmasq" a try.  It is the DHCP server
(and caching DNS server) that is used in DD-WRT and Tomato
"alternative" firmware for WRT54G routers.  I have used it
at home, and in small offices.  The configuration is a
snap.

Here's the DHCP half of my dnsmasq.conf.  8 lines!


dhcp-range=172.31.1.100,172.31.1.199,12h

# See RFC 2132 for DHCP options.
dhcp-option=1,255.255.255.0              # subnet mask - 1
dhcp-option=3,172.31.1.1                 # default router - 3
dhcp-option=6,172.31.1.1,192.168.1.1     # DNS server - 6
dhcp-option=28,172.31.1.255              # broadcast address - 28

# GENERAL OPTIONS
dhcp-leasefile=/var/lib/dhcp/dnsmasq.leases
read-ethers

# fixed DHCP addresses
dhcp-host=kimono,172.31.1.200,12h

 


Alan













.



More information about the TriLUG mailing list