I had a problem:

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

I've read and tried this suggestion. Our server is remote, we connect to it with ssh. After issuing ifdown eth0, the server stopped responding.

My OS is CentOS. How can I fix my problem?

  • Can you tell us more about what do you mean by your "server went away"? We can't reproduce your problem. – polym Aug 6 '14 at 21:03
  • @polym I am not access to it with ssh, our sites on that server not load . – Yusef Mohamadi Aug 6 '14 at 21:03
  • @polym I think this means the server is no longer accessible via SSH because its Ethernet interface was brought down. – Joseph R. Aug 6 '14 at 21:04
  • @JosephR. yes, it is right, what is solution ? – Yusef Mohamadi Aug 6 '14 at 21:05
  • 1
    @zhilevan If you don't know what it is, there's a good chance you don't have it. It's a special hardware solution that allows you to manage a server remotely without the need for an OS to even be installed on the server. To tell you the truth, I only know about it in theory and can't vouch for its applicability in your particular scenario. – Joseph R. Aug 6 '14 at 21:16

The only solutions I see is that someone bring up a console and restore the ethernet connection, or restart the server.


ifdown eth0 disables internet connection for server.

If server has no internet connection you can not connect with ssh.

To repair internet connection of server you must do ifup eth0, but you can't use ssh to do ifup eth0 because server is disconnected from internet.

You must go to server keyboard and type ifup eth0.

If server is far away you can ask someone near server to type ifup eth0 and then you can use ssh again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.