How to configure DHCP Server in centos 7, redhat7, fedora linux (Complete Server & client)



How to configure DHCP Server in Ubuntu linux 18.04 (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 – Centos 7 and 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.

source : www.techmint.com

#############################

follow us on facebook :-

https://www.facebook.com/AndroidandTechSolutions/

Website Link :-

http://www.letslearntech.com

37 thoughts on “How to configure DHCP Server in centos 7, redhat7, fedora linux (Complete Server & client)

  1. Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.

    show this error in fedora 24

  2. I have do exactly the same as you, step by step and I have this error: "Failed to get D-Bus connection: Operation not permitted." Please, if someone can help me. Thank you very much

  3. Really not good…….
    It's great video I have ever seen and the way you explained things really really good. Even people from different background can understand

  4. Thank you for this video. However, if I have internet connectivity on my router that the IP address is supplied in the configuration.
    How will I go about this?

  5. hola , tengo una consulta , mi centos 7 no corre el yum ni el wget ; estuve intentando y me dice que no puede correr esos comandos , estuve intentando instalarlos y tampoco , sabrás como solucionar ese problema

  6. Hello Sir, I have configured the way you explained. However, DHCP is not assigning the IP from the range which I have configured in dhcpd.conf file. It is assigning randomly.
    Plz help.

Leave a Reply

Your email address will not be published.