Home > Database > Mysql Tutorial > Putty连接VMware RedHat Linux 9

Putty连接VMware RedHat Linux 9

WBOY
Release: 2016-06-07 17:11:57
Original
891 people have browsed it

一、让Linux上网:Red Hat 9装在虚拟机VMware上之后,连接网络是出现问题 Determining IP information for eth0... failed; no l

一、让Linux上网:

Red Hat 9装在虚拟机VMware上之后,连接网络是出现问题

Determining IP information for eth0... failed; no link present. Check cable?

 这个问题,搞了很长时间,一直以为是自己的设置没设对,

最后发现是RedHat的一个bug,考,,郁闷。解决方法:

到/etc/sysconfig/network-scripts/ifcfg-eth

/etc/sysconfig/networking/devices/ifcfg-eth

 其中表示Ethernet adapter的标识数字,一般为0。

当为零的时候,

就是 /etc/sysconfig/network-scripts/ifcfg-eth0

/etc/sysconfig/networking/devices/ifcfg-eth0

这两个文件中加入 check_link_down () { return 1; }

另外如果存在/etc/sysconfig/networking/profiles/default/ifcfg-eth0 文件,

则同样在其中加入这一段东西即可,然后重启系统。

不行的话再手动配置下DNS 如主DNS:192.168.1.1

二、配置ifconfig

网络连接如果选择NAT,在windows中找到VMware8的ip段,将Linux的ip设置为同一网段。

命令:ifconfig eth0 192.168.1.21 netmask 255.255.255.0 up

三、关闭防火墙

chkconfig iptables off   关闭防火墙 重启即可。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template