DHCP

Server:
1.# yum install dhcp
2.y for accept and install

3.# vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
IPADDR=192.168.1.111
NETMASK=255.255.255.0

4.#vi /etc/sysconfig/network
GATEWAY=192.168.1.111

5.# service network restart
6.#ifconfig eth0
7.# service iptables stop
8.#setup-firewall-disable

9.# vi /etc/dhcpd.conf
(see /usr/share/doc/dhcp*/ dhcpd.conf.sample)
10.# cp /etc/dhcpd.conf /etc/dhcpdori.conf
11.# cp /usr/share/doc/dhcp*/ dhcpd.conf.sample /etc/dhcpd.conf (replace * with version number)
Overwrite ?:y
12.# vi /etc/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0
# … option router 192.168.1.111;
# option domain-name
option domain-name-servers 192.168.1.111;
range dynamic-bootp 192.168.1.125 192.168.1.30;
:wq
13.# service dhcpd start

Client:
1.# ping 192.168.1.111
2.#ifconfig (check Default Gateway: 192.168.1.111) It should take ip in between 192.168.1.125-192.168.1.30

Again, try the following:
Change range in server # service dhcpd restart and do the following in client:
# ipconfig eth0 down
Ipconfig eth0 up
Take cable out and plug in again.
It should now serve a new IP from the defined pool.