DHCP (Dynamic Host Control Protocol) Server Configuration Step 1 : Install dhcp packages using yum server [root#] yum install dhcp* Step 2 : Verify the dhcp packages [root#] rpmquery -qa | grep dhcp o/p : dhcp.i686 12:4.1.1-12.P1.el6 Step 3 : Copy the sample file of dhcp to dhcp configuration file [root#] cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf Step 4 : Get the IP Address of your machine [root#] ifconfig 192.168.2.2 Step 5 : Using the GUI open the file /etc/dhcp/dhcpd.conf ** Make the following changes 1. Go to Line No 27 and change : subnet 192.168.2.0 netmask 255.255.255.0 ** Changed subnet as first 3 digits of IP and last digit as 0 and netmask as 255.255.255.0 2. Go to Line No 32 and change : subnet 192.168.2.0 netmask 255.255.255.0 ** Changed subnet as first 3 digits of IP and last digit as 0 and netmask as 255.255.255.0 3. Go to Line No 33 and change : range 192.168.2.2 192.168.2.255; ** first IP will be yours ** second IP will be first 3 digits of your IP and last digit as 255 4. Go to Line No 34 and change : option routers 192.168.2.1; ** any IP less than your IP ** SAVE THE FILE Step 6 : Start the dhcp service [root#] service dhcpd start Step 7 : Restart the dhcp service [root#] service dhcpd restart Testing DHCP Client Step 1 : Open the file /etc/sysconfig/network-scripts/ifcfg-eth0 Change the Line Bootproto = dhcp ** Save the file Step 2 : Restart the network [root#] service network restart