How
to configure/Install DHCP Server In Linux RHEL 6.1
This
Article Is Not for Linux beginners
Install DHCP rpm
in Linux red hat 6.1 by using
Linux DVD
Installation of DHCP rpm
Insert Linux DVD and open Package Folder right click open in
terminal And Type
[root@localhost Packages]# rpm -ivh
dhcp-4.1.1-19.P1.el6.x86_64.rpm
After Install rpm Successfully Type setup in terminal
[root@localhost]#
setup
System service---> and enable
[*] dhcpd and ok
Now go to
/etc/dhcp/ and rename
dhcpd.conf with any name e.g. dhcp.conf
Now go to
/usr/share/doc/dhcp-4.1.1 and copy file
dhcpd.conf.sample and paste
This directory /etc/dhcp/ now rename dhcpd.conf.sample file with dhcpd.conf
And open this file and go to line number 32 and 33
By default 32 line subnet 10.254.239.0 netmask 255.255.255.224 {
Replace 32 line number with your network id and subnet mask
e.g. subnet 192.168.1.0 netmask
255.255.255.0 {
By default 33 line range 10.254.239.10
10.254.239.20;
Replace 32 line number with your ip range
e.g. range 192.168.0.2
192.168.0.200;
Note :- only edit 32 and 33 line number if you are edit another
line dhcp will not work
Save file and open terminal and restart dhcp service by typing this
command
[root@localhost]# service dhcpd restart
Now your DHCP Server is started
Note :-
All Command Is Case
sensitive
You must have root rights Or log on with root
This Article By Engineer Kashan Khan