In this section, we will install the dhcp server step by step. Begin by first checking the package the contains the dhcp server.
The result will be the package “dhcp-server” as seen from the figure. This will contain the dhcpd file which is the daemon running the dhcp protocol.
We can then install the dhcp server by running the command “yum install dhcp-server -y” which will download the service files and dependencies. Make sure that your internet connection is fine.
Open the dhcpd configuration file in "/etc/dhcp/dhcpd.conf"
At this point the dhcp server will be installed but will not be able to start until it is configured.