Home >Operation and Maintenance >CentOS >How to solve the problem of failure to start dhcp in centos
First let’s take a look at the process of installing DHCP:
1. Create a folder to mount the CD image
mkdir /mnt/cdrom
2. Mount the image
mount /dev/cdrom /mnt/cdrom
3. Modify the yum configuration file
vim /etc/yum.repos.d/CentOS-Media.repo
Modify the baseurl to the previous CD image mount point
gpgcheck =0 关闭自检 enable=1 启动
4. Rename CentOS-Base.repo to CentOS-Base.repo_back to invalidate network yum
mv CentOS-Base.repo CentOS-Base.repo_back
5. Modify the DHCP configuration file
vim /etcdhcp/dhcpd.conf
in Before this, I had been referring to books and methods to modify the configuration file, but it failed when I finally turned on the DHCP server.
Solution process:
I saw the sentence "see /user/share/doc/dhcp*/dhcpd.comf.sample" in the DHCP configuration file, so I went in I checked
cat /user/share/doc/dhcp*/dhcpd.comf.sample
, which is full of comments. But there is a similar content in the configuration file, as follows:
There is no following configuration in it:
ddns update-style interim; igmore client-updates;
So
in the configuration file is changed
ddns update-style interim; igmore client-updates;
Delete.
Restart DHCP again
Successfully.
Recommended related tutorials: centos tutorial
The above is the detailed content of How to solve the problem of failure to start dhcp in centos. For more information, please follow other related articles on the PHP Chinese website!