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.
How to slove the this Error in installing dhcp in cetos7
How to slove the this Error in installing dhcp in cetos7
- Attachments
-
- Screenshot (210).png (28.44 KiB) Viewed 3584 times
Re: How to slove the this Error in installing dhcp in cetos7
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:
PS. Do you have a specific reason to install the ISC DHCP server? There is a much simpler DHCP server: dnsmasq.
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.