How to fix broken name resolution on Centos 6.5?

Issues related to configuring your network
Post Reply
DavidA2015
Posts: 2
Joined: 2015/02/22 21:02:31

How to fix broken name resolution on Centos 6.5?

Post by DavidA2015 » 2015/02/22 21:07:41

Hi

I am running Centos 6.5 as a guest o/s on VirtualBox 4.3 on a Windows 7 host. Networking has been working fine until today when I suddenly got errors using yum:

Code: Select all

sudo yum install php-mysql
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
Also I cannot browse anywhere using Firefox.

Any ideas how to fix this please?

Best regards

David

DavidA2015
Posts: 2
Joined: 2015/02/22 21:02:31

Re: How to fix broken name resolution on Centos 6.5?

Post by DavidA2015 » 2015/02/23 03:59:36

Hi

Here is some more info on my problem. My network access is completely broken:

Code: Select all

$ ping 8.8.8.8
connect: Network is unreachable
[adminuser@localhost ~]$ ifconfig -a
eth1      Link encap:Ethernet  HWaddr 08:00:27:7D:32:8C  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:10800 (10.5 KiB)  TX bytes:10800 (10.5 KiB)
How do I get an ip address for eth1?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: How to fix broken name resolution on Centos 6.5?

Post by gerald_clark » 2015/02/23 05:15:09


User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to fix broken name resolution on Centos 6.5?

Post by TrevorH » 2015/02/23 09:16:28

You don't have an ipv4 address on that interface and if it only shows up in the output from `ifconfig -a` then you probably didn't activate the interface (as Gerald pointed out with his link to the FAQ).

Also, please note that 6.5 is old and deprecated and should be updated as soon as you do have a network connection. 6.6 is current.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply