当前位置:首页 > Linux > 正文内容

Determining IP Information for eth0...failed

canca13年前 (2012-08-18)Linux808

虚拟机的网络采用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” 的相关文章

wget下载文件

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

如何通过Linux系统下iptables防火墙开启/关闭指定端口方法

一般情况下iptables已经包含在Linux发行版中.运行iptables --version来查看系统是否安装iptables 启动iptablesservice iptables startiptables --list //*查看iptables规则集*//下面是没有定义...

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

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

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

rar命令

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

linux Tomcat/mysql监视器

#! /bin/sh##### tomcat monitor #####ui=$(ps x |grep catalina |grep tomcat |grep -v grep|awk '{print $1}')if [ "$ui" == "" ] ;thenecho "[$(date +'%F %H...

发表评论

访客

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