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

王林
Release: 2020-04-04 13:26:55
Original
4882 people have browsed it

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
Copy after login

2. Mount the image

mount /dev/cdrom /mnt/cdrom
Copy after login

3. Modify the yum configuration file

vim /etc/yum.repos.d/CentOS-Media.repo
Copy after login

Modify the baseurl to the previous CD image mount point

gpgcheck =0  关闭自检
enable=1 启动
Copy after login

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
Copy after login

5. Modify the DHCP configuration file

vim /etcdhcp/dhcpd.conf
Copy after login

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
Copy after login

, 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;
Copy after login
Copy after login

So
in the configuration file is changed

ddns update-style interim;
igmore client-updates;
Copy after login
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template