Sweshi's Tutorials

DHCP SERVER CONFIGURATION IN CENTOS LINUX

Installation of dhcp-server in Centos 9 Linux
lass="col-sm-1">

In this section, we will install the dhcp server step by step. Begin by first checking the package the contains the dhcp server.

screenshot of installation command

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.

screenshot of yum whatprovides dhcpd results

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.

screenshot of yum install dhcp-server -y

Open the dhcpd configuration file in "/etc/dhcp/dhcpd.conf"

Checking the dhcpd.conf file on centos 9

At this point the dhcp server will be installed but will not be able to start until it is configured.