如果在Windws 7 x64 中安裝VMware Server 2.0 的版本, 會發現在NAT模式下可以Ping, nslookup,  不過網路是連不出去的,  這點在VMware的網站上可以查到相關資料,  不過似乎一直沒有解決.
在網路上找到下面的方法, 就是不透過VMware內建的NAT轉換, 而改用Windows 7 內建的ICS

 

The current version of VMWare (Workstation 6.5.1, 6.5.2, Server 2.0.1, Player) doesn’t support NAT on Windows 7 (RC1). Typically you can ping servers and do nslookups but not use your Internet Browser or ssh/telnet etc.
But you can use the Internet Connection Sharing (ICS).

A more complex solution by removing all virtual adapters can be found in this VMWare Forum thread but this made some troubles on my PC so I simplified these instructions.

First Step: change virtual IP

  1. Run “Manage Virtual Networks” (VMWare Player: start vmnetcfg.exe from installation directory) with administrave rights
  2. go to “Host Virtual Network Mapping” tab, select the “>” next to VMnet1 and (if necessary) change the subnet to something different than 192.168.137.0 (for example 192.168.50.0) and click apply
  3. go to “Host Virtual Network Mapping” tab, select the “>” next to VMnet8 and change the subnet to 192.168.137.0 and click apply
  4. go to “NAT” tab, click edit and change gateway IP adress to 192.168.137.1 and click apply, 不過實際上我測試, 設定好gateway後, 再把NAT設成Disable會比較沒有問題, 直接由ICS服務即可. 我們這邊只需要用到VMware提供的DHCP服務.

It is not necessary to restart the NAT service.

Second Step: enable ICS

  1. open the “Network and Sharing Center” and click “Change adapter settings”
  2. open the properties of your LAN-Connection, go to the “sharing” tab and enable “allow other network users to connet through this computer’s internet connection” and select to connect through VMnet8
  3. windows tells you that it will assign IP 192.168.137.1, click OK

Third Step: check VMs

If you have configured a fixed IP inside your VM you must change the IP4 Gateway and DNS1 to 192.168.137.1

Note 1: Port forwarding has to be configured using the ICS Settings button, not the VMWare NAT-Dialog.

Note 2: Windows 7 Beta seems to use 192.168.37.1 as IP for ICS.

Note 3: no Windows Firewall changes are necessary