Linux解决Determining IP information for eth0... failed问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux解决Determining IP information for eth0... failed问题相关的知识,希望对你有一定的参考价值。

来自2016年的文章,当时在学习RedHat9,在装到VM Ware后连接网络出现如下问题:

Determining IP information for eth0... failed; no link present. Check cable?

这个问题当时搞了很长一段时间,一直以为自己设置没设对,最后发现竟是RedHat的一个bug。

解决如下


  1. 找到ifcfg-eth文件
sudo vim /etc/sysconfig/networking/devices/ifcfg-eth<number>

其中<number>表示Ethernet adapter的标识数字,一般为0。当为零的时候,就是

/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/devices/ifcfg-eth0


  1. 添加代码
# 在ifcfg-eth<number>文档中加入以下代码
check_link_down()
return 1;

因操作系统差异,某些RedHat版本或许会存在

/etc/sysconfig/networking/profiles/default/ifcfg-eth<number>

文件,若存在也将以上代码补充到文件中


  1. 重启系统

若重启系统后问题没有解决,则手动配置下DNS就OK,此方法亲测可用。

以上是关于Linux解决Determining IP information for eth0... failed问题的主要内容,如果未能解决你的问题,请参考以下文章