*** Install packet dhcp server
#yum install dhcp -y
*** Add new interface for dhcp & configuration static ip address
Example ip address 192.168.1.1
subnetmask 255.255.255.0
*** Configuration dhcpd.conf
#vi /etc/dhcp/dhcpd.conf
*** Copy to dhcpd.conf
ddns-update-style interim ;
allow booting ;
allow bootp ;
authoritative ;
ignore client-updates;
set vendorclass = option vendor-class-identifier ;
subnet 192.168.1.0 netmask 255.255.255.0 {
interface eno33554984;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
range 192.168.1.10 192.168.1.100;
option domain-name-servers 192.168.75.2;
max-lease-time 43200;
next-server 192.168.1.1;
}
------------------------------ [Esc] + wq: ------------------------------------------
*** Restart service dhcp
#systemctl restart dhcpd
-------------------------------- Finish ------------------------------------------------