当前位置:首页 > Linux

Determining IP Information for eth0...failed

canca14年前 (2012-08-18)Linux919

虚拟机的网络采用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应该是易如反掌的事,可在真正安装和使用…

Linux常用命令集锦

查看所有已安装前缀为samba的RPM包      rpm -qa samba*删除目录或文件   rm -r 文件名linux解压bz2文件使用   bunzip2   linux-2-4-2.tar.bz2 &nbs…

centos7 手动修改dns

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

linux 系统tar文件压缩打包命令

打包成tar.gz格式压缩包…

debian系统如何搭建 Samba服务器

debian系统如何搭建 Samba服务器

几乎所有的 Linux 发行版都提供了一个很好的工具 Samba来轻松实现文件共享。最近在Nanopi2 上安装了 debian 系统,然后准备搭建Samba 服务器来实现文件的共享,以下步骤仅供参考。…

发表评论

访客

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