Dertermining IP information for eth0....failed - no link present check cable
2008-03-21 11:27
393 查看
在VM虚拟机中装了redhat9.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 保存退出
check_link_down(){
return 1;
}
接下来,重起网络
[root@localhost network-scripts]# ifup eth0
Determining IP information for eth0... done.
好了,看到上面的提示说明已经成功,可用ifconfig检查自己是否已获得有效IP。
无法激活,在输入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 保存退出
check_link_down(){
return 1;
}
接下来,重起网络
[root@localhost network-scripts]# ifup eth0
Determining IP information for eth0... done.
好了,看到上面的提示说明已经成功,可用ifconfig检查自己是否已获得有效IP。
相关文章推荐
- VMware虚拟机出现Reason: Failed to lock the file
- caused by android.system.errnoexception open failed eacces (permission denied)解决方案,安卓6.0(API23)权限问题
- pd.read_csv之OSError: Initializing from file failed的解决方案
- INSTALL_FAILED_MISSING_SHARED_LIBRARY
- Server Tomcat v7.0 Server at localhost failed to start.的问题解决
- Snaapy java.io.IOException: FAILED_TO_UNCOMPRESS(5)
- cocos2d-x 锁屏后Get data from file("/assets") failed
- INSTALL_FAILED_SHARED_USER_INCOMPATIBLE的问题解决
- DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs
- MFC Debug Assertion Failed 错误
- Android前置摄像头视频录制失败(MediaRecorder: start failed: -19)
- 解决打开eclipse时出现“Failed to load the JNI shared library”问题
- failed to lazily initialize a collection of role
- launch failed.Binary not found
- org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJav
- Android安装应用程序出现“INSTALL_FAILED_CONTAINER_ERROR”错误的解决办法 .
- Spring如何加载XSD文件(org.xml.sax.SAXParseException: Failed to read schema document错误的解决方法)
- WebLogic调用WebService提示Failed to localize、Failed to create WsdlDefinitionFeature
- ubuntu上运行eclipse出现 Call From master to localhost:9000 failed on connection exception