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
October 8th 2009 - Doug
Thanks. Worked like magic.
July 11th 2010 - Tidings
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