how to install DHCP server on Linux
******DHCP Server
step 1 :install DHCP sudo dnf -y install dhcp-server
step 2 :Configuring DHCP Server cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bk
vim /etc/dhcp/dhcpd.conf
******
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;
subnet 192.168.253.0 netmask 255.255.255.0 {
range 192.168.253.50 192.168.253.200;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1;
}
******
-Start the Service systemctl enable dhcpd
systemctl start dhcpd
– verify the DHCP Service systemctl status dhcpd
step 3 :Configuring the Firewall firewall-cmd –add-service=dhcp –permanent
firewall-cmd –reload
***For Clients install sudo dnf -y install dhcp-client
by RoFat
linux dhcp server