你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS网络启动错误

[日期:2014-07-25] 来源:Linux社区  作者:roosterhpf [字体:大 中 小]

我所使用的是CentOS虚拟机,在那个环境下有dhcp服务,本来用的好好的,可是突然出现了如下错误:

错误:determining IP information for eth0 ... failed; no link present . Check cable?

开始还以为是网线掉了,结果好的。

后来去网上百度,Google了一下,结果出现的都是

Getting a DHCP Address in a Red Hat Linux 9.0 Virtual Machine
When a Red Hat Linux 9.0 guest operating system tries to get a DHCP address, the attempt may fail with an error message that states the link is down. On ESX Server, this happens only if you are using the vlance driver for your network connection.
To work around this problem, become root (su -) and use a text editor to edit the following files in the guest operating system. If only one of these files exist, make the change for that file only.
/etc/sysconfig/network-scripts/ifcfg-eth[n]
/etc/sysconfig/networking/devices/ifcfg-eth[n]
In both cases, [n] is the number of the Ethernet adapter — for example, eth0.
Add the following section to each of these two files:
check_link_down () {
return 1;
}

Then run the command ifup eth[n] (where [n] is the number of the Ethernet adapter) or restart the guest operating system.

结果我试了一下还是不行,就是出错改变了变成了如下错误

determining IP information for eth0 ... failed;

后来想了一下修改ifcfg-eth0,把原来的dhcp改为static,整个配置改成静态的,然后再重启网络,就发现可以了。

在CentOS 7上利用systemctl添加自定义系统服务 http://www.linuxidc.com/linux/2014-07/104487.htm

CentOS 7.0下编译安装LNMP http://www.linuxidc.com/Linux/2014-07/104247.htm

CentOS 7.0体验与之前版本的不同 http://www.linuxidc.com/Linux/2014-07/104196.htm

CentOS 7 正式版发布下载 http://www.linuxidc.com/Linux/2014-07/104146.htm

U盘安装64位CentOS 6.5方法 http://www.linuxidc.com/Linux/2014-04/100035.htm

Win7安装64位CentOS 6.4双系统详细图文教程 http://www.linuxidc.com/Linux/2014-04/100032.htm

CentOS与Windows双系统安装注意事项记录 http://www.linuxidc.com/Linux/2014-05/101571.htm

UEFI+GPT安装Windows8和CentOS双系统 http://www.linuxidc.com/Linux/2014-05/101575.htm

更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-07/104685.htm

linux
相关资讯       CentOS网络启动  CentOS启动 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款