Tuesday, 15 May 2012

HOW TO INSTALL DHCP SERVER ON RHEL 6


HOW TO INSTALL DHCP SERVER ON RHEL 6

Note: Whenever we designed DHCP Server first we set static IP on that server system

Step1-  Now we install dhcp packages






















Step2- Now go to dhcp configuration file
Here is available only sample file path not to configuration file.
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf 

 
Step3- Now we will go to copy sample file and then configure dhcpd.conf file
[root@localhost ~]# 
[root@localhost ~]# cp -r /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
cp: overwrite `/etc/dhcp/dhcpd.conf'? y
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf


Step4- Now start the dhcp server services

[root@localhost ~]# service dhcpd restart
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
[root@localhost ~]# chkconfig dhcpd on

Step5- When DHCP Server release IP Address of DHCP Client's then server maintain dhcpd.leases file of IP details and system mac.

[root@localhost ~]# cat /var/lib/dhcpd/dhcpd.leases
[root@localhost ~]#
NOW CONNECT CLIENT WITH DHCP SERVER 

5 comments:

  1. i done all this...but when i start dhcpd services it will be failed....help me to resolv this promlem

    ReplyDelete
  2. put entry in /etc/sysconfig/dhcp file as
    DHCPDARGS=eth0

    ReplyDelete
  3. same problem as sagar ruikar facing..

    ReplyDelete