The Dynamic Host Configuration Protocol (DHCP) is a network protocol used to assign IP addresses and provide configuration information to devices such as servers, desktops, or mobile devices, so they can communicate on a network using the Internet Protocol (IP).
#yum –y install dhcp*
#vim /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample ->this is just a sample file of DHCP
#vim /etc/dhcp/dhcp.conf
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.151 192.168.0.200;
option domain-name-server 192.168.0.150;
option routers 192.168.1.1;
}
:wq