How to configure DHCP server in RedHat Linux

DHCP means Dynamic Host Configuration Protocol. It is one of the most important server in networking. Even everywhere  at every place when we are in network, we are using  it. Configuration of it is very very simple. First time i am uploading video Tutorial, dont worry text tutorial is also there...



[root@princy ~]#yum -y install dhcp

[root@princy ~]#vi /etc/dhcp/dhcpd.conf                       
 
# create new
# specify domain name in file dhcpd.conf

option domain-name
"hackers001.linux";
# pecify DNS's hostname or IP address

option domain-name-servers
   hackers001.linux.redhat;
# default lease time

default-lease-time 600;
# max lease time

max-lease-time 7200;
# this DHCP server to be declared valid

authoritative;
# specify network address and subnet mask

subnet 192.168.0.1 netmask 255.255.255.0 {

# specify the range of lease IP address


range dynamic-bootp 192.168.0.12  192.168.0.120;


# specify broadcast address


option broadcast-address 192.168.0.255;


# specify default gateway


option routers 192.168.0.1;

}
[root@princy ~]#systemctl start dhcpd.service
[root@princy ~]#
systemctl enable dhcpd.service

5 comments:

  1. its a useful video tutorial.i liked it.thanks for sharing.

    ReplyDelete
  2. nice sharing than u.u can checkout my blog 4 red hat 5.4 server configure and many mores...

    ReplyDelete
  3. Hey how we can configure it for IPV6. If i want to exclude some of the ipaddress. if i want to provide for different class of ip for different labs in a single server. How we can do it?

    ReplyDelete
  4. I think this video is not very usefull. you cab refer to Linux CBT for more configuration.

    ReplyDelete

Any Query, Suggestion Please Comment Here