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...
option domain-name "hackers001.linux";
option domain-name-servers hackers001.linux.redhat;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.0.1 netmask 255.255.255.0 {
} [root@princy ~]#systemctl start dhcpd.service
[root@princy ~]#systemctl enable dhcpd.service
[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 enable dhcpd.service
nice trick princy..
ReplyDeleteits a useful video tutorial.i liked it.thanks for sharing.
ReplyDeletenice sharing than u.u can checkout my blog 4 red hat 5.4 server configure and many mores...
ReplyDeleteHey 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?
ReplyDeleteI think this video is not very usefull. you cab refer to Linux CBT for more configuration.
ReplyDelete