关于虚拟机上centos无法连接上网络的问题

最近由于csapp的需要,在虚拟机上装了一个centos,但是却不能更新,不能连接网络,百度了很多办法,最终还是谷歌上的有效!(滑稽)

具体链接为https://unix.stackexchange.com/questions/22924/how-can-i-fix-cannot-find-a-valid-baseurl-for-repo-errors-on-centos

我所用的命令是sudo dhclient

解释是由于centos将你的网络设备的设置设为了ONBOOT=No,你需要启动并运行!成功解决!

First you need to get connected, AFAIK CentOS 6 minimal set your network device to ONBOOT=No, just do a dhclient with admin privileges to your network interface and you should be up and running:

猜你喜欢

转载自blog.csdn.net/Victor145/article/details/80347621