Install the dhcp packages :

#  yum  install  dhcp*

Now, copy the sample file to new location in  /etc :

#  cp  /usr/share/doc/dhcp-[version no.]/dhcpd.conf.sample  /etc/dhcpd.conf

Now, edit dhcpd.conf :

#  vi  /etc/dhcpd.conf

subnet [network ip] netmask [subnet mask]
option routers [server ip]
option subnet mask [mask]
range dynamic-bootp [starting ip] [ending ip]

To provide a fixed IP address to a system :
Just below the line “we want the nameserver to appear at a fixed address” edit :

host ns {
next-server []
hardware ethernet [MAC address of desired system]
fixed-address [required IP address]

The original lines should be commented.

Now, start the dhcp service :

#  service  dhcpd  start

———Client side settings———-

Edit :

#  vi  /etc/sysconfig/network-scripts/ifcfg-eth0


#  service  network  restart