Example dhcpd.conf

This is a quick /etc/dhcpd.conf file for the ISC DHCP server. This should be enough to get a basic DHCP server up and running on linux.

option domain-name "mydomain.com"; option domain-name-servers 10.0.0.2, 10.0.0.3; default-lease-time 14440; ddns-update-style none; deny bootp; shared-network NetworkName { subnet 10.0.0.0 netmask 255.255.255.0 { option routers 10.0.0.1; option subnet-mask 255.255.255.0; pool { range 10.0.0.10 10.0.0.20; } } }
Leave A Reply - 2 Replies
Replies
Doug 2009-10-08 09:56am - No Email - Logged IP: 38.109.155.98

Thanks. Worked like magic.

Tidings 2010-07-11 12:00pm - No Email - Logged IP: 72.177.176.101

out of the first 5 lines, all but lines 2 and 3 can be deleted if all you want is basic DHCP function Line 3 should be a larger interval since this is the lease time in seconds, try 86400 semicolon missing after 'option routers 10.0.0.1' and 10.x.x.x is a /8 net so you would be better off with a 255.0.0.0 subnet

All content licensed under the Creative Commons License