How to configure DHCP Server in centos 7 – (Complete Server & client)
How to configure DHCP Server in centos 7 – (Complete Server & client)
What is DHCP Server ?
DHCP (Dynamic Host Configuration Protocol) is a network protocol that enables a server to automatically assign an IP address and provide other related network configuration parameters to a client on a network, from a pre-defined IP pool.
This means that each time a client (connected to the network) boots up, it gets a “dynamic” IP address, as opposed to “static” IP address that never changes. The IP address assigned by a DHCP server to DHCP client is on a “lease”, the lease time can vary depending on how long a client is likely to require the connection or DHCP configuration.
In this tutorial, we will cover how to install and configure a DHCP server in CentOS/RHEL and Fedora distributions.
Testing Environment Setup
We are going to use following testing environment for this setup.
DHCP Server – CentOS 7
DHCP Clients – Windows 10
How Does DHCP Work?
Before we move any further, let’s briefly explain how DHCP works:
When a client computer (configured to use DHCP) and connected to a network is powered on, it forwards a DHCPDISCOVER message to the DHCP server.
And after the DHCP server receives the DHCPDISCOVER request message, it replies with a DHCPOFFER message.
Then the client receives the DHCPOFFER message, and it sends a DHCPREQUEST message to the server indicating, it is prepared to get the network configuration offered in the DHCPOFFER message.
Last but not least, the DHCP server receives the DHCPREQUEST message from the client, and sends the DHCPACK message showing that the client is now permitted to use the IP address assigned to it.
All commands :
su
yum install dhcp
vim /etc/sysconfig/dhcp
mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.backup
systemctl enable dhcpd
systemctl restart dhcpd
firewall-cmd –permanent –zone=public –add-service=dhcp
firewall-cmd –reload
vim /etc/sysconfig/network-scripts/ifcfg-enp0s3
service network restart
service dhcpd restart
dhcp configureations :
option domain-name “example.com”;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.1;
option domain-name-servers 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
?
#InstallDHCPinCentos #DHCP #Centos7
My other videos
Access Android Device using Metasploit | Kali Linux Tutorial 2021 | Sinhala Tutorial
https://youtu.be/7DRy3hUwGf8
How to install Kali Linux on Android Without Root 2021 | Sinhala Tutorial
How to Solve Nethunter Rootless Rootfs Corrupted | Manually Download Nethunter – (100% Working)
What is Ransomware | How to Work Wannacry Ransomware 2021
How to login FB account without email, numbers and password – ඊමේල්, පාස්වර්ඩ් නැතුව fb ලොග්වෙමු
How to remove forget windows password – වින්ඩෝස් පාස්වඩ් එක ලේසියෙන්ම අයින් කරමු.
My social media platforms
Facebook
https://www.facebook.com/Awsome-To-Learn-105283758176438
If you like my channel
Like
Share
Comment
Subscribe…………………….
How to configure DHCP Server in centos 7,
install DHCP server in centos 7 in sinhala,
configure DHCP server in centos 7 in sinhala,
DHCP server in centos in sinhala,
linux administration in sinhala,
linux server administration in sinhala,
centos server administration in sinhala,
How to configure DHCP Server in centos 7 in 2021,
dhcp server in centos,
dhcp configure in linux in sinhala,
centos 7