DHCP server configuration

This is a bare minimum guide to setup a DHCP server.

1. Install the dhcp package:

yum install dhcp

2. Replace the /etc/dhcpd.conf with the following:

ddns-update-style interim;
ignore client-updates;

subnet netmask {

option routers;
option subnet-mask;

option domain-name "domain.com";
option domain-name-servers;

option time-offset -18000; # Eastern Standard Time

range dynamic-bootp;
default-lease-time 21600;
max-lease-time 43200;

3. Alter the values as needed.
4. Set the server to start on boot:

/sbin/chkconfig dhcpd on

5. Start the server:

/sbin/service dhcpd start

6. Review /var/log/messages for any errors.

Make sure you have port 67/udp open if you are using a host-based firewall.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s