Linux:DHCP Configuration in RHEL...

DHCP, or Dynamic Host Configuration Protocol, allows an administrator to configure network settings for all clients on a central server.

The DHCP server in turn leases the client an IP address within a given range or leases the client an IP address based on the MAC address of the client's network interface card (NIC).

dnf repolist all
dnf install -y dhcp-server

Open the setting over vm and select host only in all machine.

also open VM editor and choose host only ok.

ifup ens33 in both the machine.

ip a and ping all the ip assign to the machine connected to the server.

Go to the Server Machine (root) and edit ens33 ,set static ip

cd /etc/dhcp
ls
cp -r /usr/share/doc/dhcp-sercer/dhcpd.conf.example dhcpd.conf
vim dhcpd.conf(define the range over here)