The reader is expected to know what DHCP is, here are simply sample configuration files for basic usage reference.
This package is prefered by Edoceo over the ISC offering, still mad at them for BIND.
# Start,Stop,Mask,Lease dhcp-range=10.0.0.32,10.0.0.248,255.255.255.0,2h # Gateway dhcp-option=3,10.0.0.1 # DNS dhcp-option=6,10.0.0.1 # Domain Name dhcp-option=15,dhcp.edoceo.com # IP Forward (no) dhcp-option=19,0 # Source Routing dhcp-option=20,0 # TTL # dhcp-option=23,64 # Broadcast Address # dhcp-option=28,10.0.0.255 # 0.0.0.0 Means to reference self for this option # NTP Server dhcp-option=42,0.0.0.0 # 44-47 NetBIOS dhcp-option=44,0.0.0.0 dhcp-option=45,0.0.0.0 dhcp-option=46,8 dhcp-option=47 dhcp-authoritative
Grrr.
My dhcpd.conf file:
# option definitions common to all supported networks, time in seconds
default-lease-time 28800;
max-lease-time 432000;
listen-on
{
127.0.0.1;
192.168.0.1;
};
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local1;
# When starting dhcpd it asked for this, don't know why
ddns-update-style ad-hoc;
# Subnet declaractions
# Unserviced subnet
subnet 29.2.16.0 netmask 255.255.255.0 { }
# This is a very basic subnet declaration.
subnet 10.0.0.0 netmask 255.255.255.0
{
range 10.0.0.16 10.0.0.95;
option domain-name ".dhcp.edoceo.com";
option domain-name-servers 10.0.0.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type 8;
option ntp-servers 10.0.0.1;
option routers 10.0.0.1;
}