Configuring the DHCP Server

Installation and configuration of your DHCP service

1. Installation of the service
[root@proxy docadmin]# yum install dhcp
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
ddns-update-style interim;
ignore client-updates;

2. Check the install process
[root@proxy docadmin]# ps -ef|grep dhcp
root 2941 1 0 Sep06 ? 00:00:40 /usr/sbin/dhcpd
root 18191 18163 0 11:06 pts/1 00:00:00 grep dhcp

[root@proxy docadmin]# /sbin/chkconfig --list dhcpd
dhcpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

3. Configuring the dhcp config file
Gateway of the clients:
Domain Name:
Range: to


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

subnet netmask {

# --- default gateway
option routers;
option subnet-mask;

option nis-domain "";
option domain-name "";
option domain-name-servers;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {next-server;
# hardware ethernet 12:34:56:78:AB:CD;

4. Start the service
[root@proxy etc]# /sbin/service dhcpd restart
Internet Systems Consortium DHCP Server V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]