I am trying to perform a fresh CentOS 6.3 installation then run various yum
commands such as yum install httpd
.
The installation runs fine, however I cannot run any network based commands like yum
I am aware the default installation has networking disabled. I have amended the /etc/sysconfig/network-scripts/ifcfg-eth0
file in accordance with this guide, but keep receiving the error
Could not retrieve mirrorlist http://mirrorlist.centos.org?release=6arch=i1386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
I have since amended the /etc/resolv.conf
file to include Google's nameserver 8.8.8.8 but this hasn't changed anything.
I have amended /etc/sysconfig/network
changing the hostname
from localhost.localdomain
to local.igoo.net
(a made up but fully qualified domain?).
I did have it working yesterday then tried to install WHM/cPanel which went fine. I then decided I didn't need WHM/cPanel so fresh insatlled CentOS and now cannot recreate the steps I took to get networking working. When I run /etc/init.d/network restart
the error message:
Bringing up interface eth0:
Determining IP information for eth0... failed; no link present. Check cable?
(The cable is not unplugged)
I'm not sure what to try next! Can anyone suggest what I've missed out?
ifconfig eth0 10.0.0.100 up
thenping 10.0.0.something
/etc/sysconfig/network
andifcfg-eth0
file contents. Also, are you sure you want DHCP? CentOS boxes are usually servers, and so usually need static addresses. The "Determining IP information..." bit in your question indicates it's trying DHCP.