Home >Operation and Maintenance >CentOS >How to solve the problem of failure to start dhcp in centos

How to solve the problem of failure to start dhcp in centos

王林
王林Original
2020-04-04 13:26:554887browse

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 启动

How to solve the problem of failure to start dhcp in centos

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

How to solve the problem of failure to start dhcp in centos

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.

How to solve the problem of failure to start dhcp in centos

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:

How to solve the problem of failure to start dhcp in centos

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

How to solve the problem of failure to start dhcp in centos

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn