How to slove the this Error in installing dhcp in cetos7

Issues related to configuring your network
Post Reply
cdh
Posts: 1
Joined: 2021/04/08 17:23:27

How to slove the this Error in installing dhcp in cetos7

Post by cdh » 2021/04/08 17:28:37

I'm trying to install DHCP in centos7 which is in a virtual machine. I use the following command yum install -y dhcp But it gives an error saying that yum does not have enough cache data to continue. AS in the image I'm getting the error. I am new to networking and working with linux environments.
Image file is attached.
Attachments
Screenshot (210).png
Screenshot (210).png (28.44 KiB) Viewed 595 times

User avatar
jlehtone
Posts: 3546
Joined: 2007/12/11 08:17:33
Location: Finland

Re: How to slove the this Error in installing dhcp in cetos7

Post by jlehtone » 2021/04/08 18:47:58

First. You might be able to copy text from VM's console. Then you don't have to post bitmap images.

The error says: Could not resolve host: mirrorlist.centos.org

That is indeed a network error. What do you get with commands:

Code: Select all

nmcli
ip ro
cat /etc/resolv.conf
ping -c 1 mirrorlist.centos.org

PS. Do you have a specific reason to install the ISC DHCP server? There is a much simpler DHCP server: dnsmasq.

Post Reply

Return to “CentOS 7 - Networking Support”