How to set up DHCP services in Linux. First, give the machine to configure a static ip, the following information to modify the network card configuration file path:
vim / etc / sysconfig / Network-scripts / ens33 the ifcfg-
finished restart the service after configuration changes: systemctl restart network.
If it is, then yum install yum cache must first clear look rm -rf /etc/yum.repo.d/*
a new yum file vim /etc/yum.repo.d/a.repo
use the system CD-ROM mount mount / dev / sr0 / media will mount the CD to the next meida directory
yum install DHCP services
cp -r /usr/share/doc/dhcp-4.2.5/dhcp.conf.example /etc/dhcp/dhcpd.conf
into the main DHCP configuration file vim /etc/dhcp/dhcpd.conf
have a subnet statement on line 47
after you set up the machine If you were using a printer a fixed IP, then there is a 77-line set retention
Once configured wq to save and exit
last start DHCP systemctl start network services