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
NOW CONNECT CLIENT WITH DHCP SERVER
i done all this...but when i start dhcpd services it will be failed....help me to resolv this promlem
ReplyDeleteput entry in /etc/sysconfig/dhcp file as
ReplyDeleteDHCPDARGS=eth0
same problem as sagar ruikar facing..
ReplyDeleterestarting service failed
ReplyDeleterestart dhcp service failed
ReplyDelete