码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS网络启动错误

时间:2014-07-25 10:59:51      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:linux   运维   

我所使用 的是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网络启动错误,布布扣,bubuko.com

CentOS网络启动错误

标签:linux   运维   

原文地址:http://blog.csdn.net/dapeng0112/article/details/38110217

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!