因此,在过去一天与VMWare网络巨人战斗后,我决定放弃并寻求帮助。我在VMWare Workstation 8.0.2 build-591240上使用NAT在Windows 7上运行CentOS 6映像,出于某种原因,我无法再使用静态IP地址连接到Internet。这似乎只适用于静态的,而不是DHCP,它告诉我它是:我的Windows 7操作系统上的某些程序阻止了该IP地址的连接,或者在CentOS映像上发生了我的配置中出现的奇怪现象。无法将CentOS虚拟机连接到互联网(NAT连接)
我不知道如果这是由于yum更新,所以我尝试重新安装VMWare工具。这似乎并没有解决这个问题。我也试过如下:
- 确信的的VMnet连接被连接(愚蠢的,但不得不检查......我也可以连接到使用DHCP的网络)
- 确信我的防火墙在Windows允许VMware连接到互联网
- 我已经看到/读到Windows有时会阻止ping请求,所以我尝试去Firefox的www.google.com,这有一个“服务器未找到响应”...所以我必须为DNS做一些不同的事情吗?
- 我检查我的Windows机器的注册表中,我只有一个默认网关
1项就像我说的,这似乎发生出蓝色。该图像可以在没有问题之前连接到互联网。有谁知道可能会导致此问题的CentOS更新?我已经添加了我的配置如下,以节省一些调试周期:
[[email protected] ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:A0:51:BD
inet addr:192.168.88.128 Bcast:192.168.88.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:683 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:64242 (62.7 KiB) TX bytes:8055 (7.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1049 errors:0 dropped:0 overruns:0 frame:0
TX packets:1049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:68417 (66.8 KiB) TX bytes:68417 (66.8 KiB)
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
IPV6INIT="no"
NM_CONTROLLED="no"
ONBOOT="yes"
IPADDR=192.168.88.128
NETMASK=255.255.255.0
GATEWAY=192.168.88.2
TYPE="Ethernet"
[[email protected] ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=MyCentOS
GATEWAY=192.168.88.2
[[email protected] ~]# service iptables status
iptables: Firewall is not running.
[[email protected] ~]# service ip6tables status
ip6tables: Firewall is not running.
[[email protected] ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[[email protected] ~]# ping 192.168.88.2
PING 192.168.88.2 (192.168.88.2) 56(84) bytes of data.
64 bytes from 192.168.88.2: icmp_seq=1 ttl=128 time=0.391 ms
64 bytes from 192.168.88.2: icmp_seq=2 ttl=128 time=0.271 ms
^C
--- 192.168.88.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1349ms
rtt min/avg/max/mdev = 0.271/0.331/0.391/0.060 ms
[[email protected] ~]# ping www.google.com
ping: unknown host www.google.com
[[email protected] ~]# uname -a
Linux MyCentOS 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# vmware-toolbox-cmd -v
8.8.2.10499 (build-590212)
我测试了在静态配置中将IP地址更改为192.168.88.131(在此地址使用DHCP)。这似乎解决了这个问题...将调查其他人的未来参考,看看有什么阻止xxx.xxx.xxx.128 .. – gordysc