当前位置:首页 > Linux

Determining IP Information for eth0...failed

canca14年前 (2012-08-18)Linux901

虚拟机的网络采用NAT方式,始终不能上网,纠结了好几天的问题终于解决了。
VM虚拟机中装了redhatlinux9.0,准备与主机共享文件,结果网络不通! 
      无法激活,在输入ifup eth0后总提示: 
      Dertermining IP information for eth0....failed - no link present check cable 
      解决办法:

      在 /etc/sysconfig/network-scripts/ifcfg-eth0 
      中添加以下script: 
      check_link_down() { 
      return 1; 
     
      具体操作: 
      [root@localhost root]# cd /etc/sysconfig/network-scripts/ 
      [root@localhost network-scripts]# vi ifcfg-eth0 
      # Please read /usr/share/doc/initscripts-*/sysconfig.txt 
      # for the documentation of these parameters. 
      ONBOOT=yes 
      USERCTL=no 
      PEERDNS=yes 
      TYPE=Ethernet 
      DEVICE=eth0 
      HWADDR=00:0c:29:64:c2:5f #此处可以不添加,根据自己机器而定(建议先不添加) 
      BOOTPROTO=dhcp   
      #以下为添加部分,具体操作方法:先按a,在光标后插入下面文本,最后 :wq 保存退出(或用Gedit编辑) 
      check_link_down(){ 
      return 1; 
     
      接下来,重起网络(如果重起网络不行,则重启系统!) 
      [root@localhost network-scripts]# ifup eth0 
      Determining IP information for eth0... done. 
      好了,看到上面的提示说明已经成功,可用ifconfig检查自己是否已获得有效IP。 

Windwos XP + VMWare 5.0.0 build-13124 + Red Hat Linux 9.0,使用DHCP,系统启动时,启动网卡失败;手动设置IP、网关、DNS等则无问题。在网上搜到以下内容:
——————————————————————————————————————
the RH9 on VMWare Eth0 "No Link Present"
I am not able to setup my eth0 on RH linux 9 installed on a vmware GSX server 3.
I recieve the error message : Determining IP information for eth0... Failed! no link present. Check Cable.
- I use Bridged networking
- Card detected : AMD PCnet 32 Lance
- Driver : AMD PCnet 32
Can someone help???
-------------------------------------------
Oh! Sorry, I was assuming your host was Linux.
I found this on VMware's site:
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 file* **ist, 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.
——————————————————————————————————————
说是RedHat Linux的一个BUG,修改 /etc/sysconfig/network-scripts/ifcfg-eth0 或 /etc/sysconfig/networking/devices/ifcfg-eth0 或 /etc/sysconfig/networking/profiles/default/ifcfg-eth0 任意一个即可(事实上,修改任何一个文件,其余两个文件都会自动更新内容)。

扫描二维码推送至手机访问。

版权声明:本文由Ant.Master's Blog发布,如需转载请注明出处。

本文链接:https://iant.work/post/156.html

标签: Linux
分享给朋友:

“Determining IP Information for eth0...failed” 的相关文章

在Linux下安装和使用MySQL

一、引言 想使用Linux已经很长时间了,由于没有硬性任务一直也没有系统学习,近日由于工作需要必须使用Linux下的 MySQL。本以为有Windows下使用SQL Server的经验,觉得在Linux下安装MySql应该是易如反掌的事,可在真正安装和使用…

wget下载文件

一、下载目录#wget -r -np -nd http://example.com/packages/这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作用是不遍历父目录,-nd 表示不在本机重新创建目录结构。二、下载指定扩展名文件#…

Linux 安装Apache

本以为Apache的编译安装很简单,其实不然;  以前的环境下编译报错很少 ,但这次不行了  提示configure: error: APR not found. Please read the documentation.  经网上查阅资料才知道这是Apac…

rar命令

在ubuntu下面首先需要安装: sudo apt-get install rar 下面是命令参数及详解(转来的)用法:  rar <命令>-<开关 1> -<开关 N> <压缩文件> <文件...> <@列表文件.…

centos 7 crontab定时器及开机自启

crontab 建议直接采用centos7 自带得cronteb包,定时器:就是定时去执行干某一件事在这里我以脚本为媒介1 当然是创建一个脚本,创建目录随意但是你一定要记得。。直接通过vi来创建一个test.sh脚本!…

centos7 手动修改dns

方法一:vim /etc/resolv.conf…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。