当前位置:首页 > Linux

Determining IP Information for eth0...failed

canca14年前 (2012-08-18)Linux849

虚拟机的网络采用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删除乱码文件

一些乱码文件不可以通过普通的rm命令进行管理。可以通过删除i节点的方式删除。[root@192_168_100_35 musicwap]# ls??,?K?k??a*.?J]?k?Φ??P???Z?b?A?R???X??u??.?????*H@B?T???xS*查看乱码文件的i结点[root@192…

linux shell下除了某个文件外的其他文件全部删除的命令

linux shell下除了某个文件外的其他文件全部删除的命令

Linux反选删除文件最简单的方法是# shopt -s extglob      (打开extglob模式)# rm -fr !(file1) 如果是多个要排除的,可以这样:# rm -rf !(file1|file2) Lin…

debian系统如何搭建 Samba服务器

debian系统如何搭建 Samba服务器

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

armbian修改为中文环境,解决中文乱码

step1:输入 dpkg-reconfigure locales…

Debian更新系统时间

Debian更新时间A 更新源,并安装ntpdate:0.date 查看当前的系统时间1.sudo apt-get update 更新源2.sudo apt-get install ntpdate 安装ntpdate3.sudo ntpdate ntp1.aliyun.…

Linux修改用户名

Linux将用户名修改后,还需要修改 组名+家目录+UID这只会更改用户名,而其他的东西,比如用户组,家目录,UID 等都保持不变。1、修改用户名$ usermod -l 新用户  旧用户这只会更改用户名,而其他的东西,比如用户组、家目录、ID 等都…

发表评论

访客

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