Page 1 of 1

How to slove the this Error in installing dhcp in cetos7

Posted: 2021/04/08 17:28:37
by cdh
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.

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

Posted: 2021/04/08 18:47:58
by jlehtone
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.