我有一个 Windows 2003 SBS 盒子。它有 2 个物理网卡:WAN 和 LAN。WAN 是公共 IP。LAN 是一个简单的 192.168.2.x 子网,带有 Microsoft DHCP 服务器。Microsoft 路由和远程访问服务用于为 LAN 提供 NAT。该盒子还运行 VMware Server,其中有一个运行 Windows XP 的虚拟机。我希望人们能够通过 VPN 进入盒子,并通过 MSRDP 端口连接到这些虚拟机。我可以通过 VPN(PPTP)顺利进入 2003 SBS 盒子,也可以 ping LAN 上的其他机器。
- 我可以从 LAN 上的物理工作站 ping 虚拟机,反之亦然。
- 我可以从 LAN 上的物理工作站 ping VPN 客户端,反之亦然。
- 我可以从 VPN 客户端 ping 服务器
- 编辑:我无法从服务器 ping 通 VPN 客户端!
- 我可以从服务器控制台 ping VM 客户端,反之亦然。
- 但是我无法从 VM ping 通 VPN 客户端,反之亦然。
我希望在我们唯一的服务器上设置 2 或 3 个 Windows XP 虚拟机,这样几个人就可以通过 VPN 然后通过 RDP 进行工作,而无需在办公室留下一台物理机器。您可以尝试设置一个“穷人终端服务器”。
在 2003 SBS 服务器上:-
C:\Documents and Settings\Administrator>route print
IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x10004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
0x10005 ...00 11 43 d4 69 13 ...... Broadcom NetXtreme Gigabit Ethernet
0x10006 ...00 11 43 d4 69 14 ...... Broadcom NetXtreme Gigabit Ethernet #2
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 81.123.144.22 81.123.144.21 1
81.123.144.20 255.255.255.252 81.123.144.21 81.123.144.21 1
81.123.144.21 255.255.255.255 127.0.0.1 127.0.0.1 1
81.255.255.255 255.255.255.255 81.123.144.21 81.123.144.21 1
86.135.78.235 255.255.255.255 81.123.144.22 81.123.144.21 1
109.152.62.236 255.255.255.255 81.123.144.22 81.123.144.21 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.2.0 255.255.255.0 192.168.2.3 192.168.2.3 1
192.168.2.3 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.2.26 255.255.255.255 192.168.2.32 192.168.2.32 1
192.168.2.28 255.255.255.255 192.168.2.32 192.168.2.32 1
192.168.2.32 255.255.255.255 127.0.0.1 127.0.0.1 50
192.168.2.50 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.2.255 255.255.255.255 192.168.2.3 192.168.2.3 1
192.168.10.0 255.255.255.0 192.168.10.1 192.168.10.1 20
192.168.10.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.10.255 255.255.255.255 192.168.10.1 192.168.10.1 20
192.168.96.0 255.255.255.0 192.168.96.1 192.168.96.1 20
192.168.96.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.96.255 255.255.255.255 192.168.96.1 192.168.96.1 20
224.0.0.0 240.0.0.0 81.123.144.21 81.123.144.21 1
224.0.0.0 240.0.0.0 192.168.2.3 192.168.2.3 1
224.0.0.0 240.0.0.0 192.168.10.1 192.168.10.1 20
224.0.0.0 240.0.0.0 192.168.96.1 192.168.96.1 20
255.255.255.255 255.255.255.255 81.123.144.21 81.123.144.21 1
255.255.255.255 255.255.255.255 192.168.2.3 192.168.2.3 1
255.255.255.255 255.255.255.255 192.168.10.1 192.168.10.1 1
255.255.255.255 255.255.255.255 192.168.96.1 192.168.96.1 1
Default Gateway: 81.123.144.22
===========================================================================
Persistent Routes:
None
C:\Documents and Settings\Administrator>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : 2003server
Primary Dns Suffix . . . . . . . : mycompany.local
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : Yes
DNS Suffix Search List. . . . . . : mycompany.local
gateway.2wire.net
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet
8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.10.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet
1
Physical Address. . . . . . . . . : 00-50-56-C0-00-01
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.96.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
PPP adapter RAS Server (Dial In) Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.2.32
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled
Ethernet adapter LAN:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet
Physical Address. . . . . . . . . : 00-11-43-D4-69-13
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.2.50
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.2.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 192.168.2.3
Primary WINS Server . . . . . . . : 192.168.2.3
Ethernet adapter WAN:
Connection-specific DNS Suffix . : gateway.2wire.net
Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet #2
Physical Address. . . . . . . . . : 00-11-43-D4-69-14
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 81.123.144.21
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . : 81.123.144.22
DHCP Server . . . . . . . . . . . : 10.0.0.1
DNS Servers . . . . . . . . . . . : 10.0.0.1
Primary WINS Server . . . . . . . : 192.168.2.3
NetBIOS over Tcpip. . . . . . . . : Disabled
Lease Obtained. . . . . . . . . . : 25 February 2011 22:56:59
Lease Expires . . . . . . . . . . : 25 February 2011 23:06:59
C:\Documents and Settings\Administrator>ping 192.168.2.11
Pinging 192.168.2.11 with 32 bytes of data:
Reply from 192.168.2.11: bytes=32 time<1ms TTL=128
Reply from 192.168.2.11: bytes=32 time<1ms TTL=128
Reply from 192.168.2.11: bytes=32 time<1ms TTL=128
Reply from 192.168.2.11: bytes=32 time<1ms TTL=128
在VPN客户端上:
C:\>tracert 192.168.2.3 ## THIS IS THE SBS SERVER
Tracing route to 2003server.mycompany.local [192.168.2.3]
over a maximum of 30 hops:
1 59 ms 58 ms 61 ms 2003server.mycompany.local [192.168.2.3]
Trace complete.
C:\>tracert 192.168.2.14 ## THIS IS A PHYSICAL LAN COMPUTER
Tracing route to ws2001.mycompany.local [192.168.2.14]
over a maximum of 30 hops:
1 57 ms 57 ms 56 ms 192.168.2.32
2 64 ms 63 ms 59 ms ws2001.mycompany.local [192.168.2.14]
Trace complete.
C:\>tracert 192.168.2.11 ## THIS IS THE VM
Tracing route to ws2009.mycompany.local [192.168.2.11]
over a maximum of 30 hops:
1 69 ms 58 ms 56 ms 192.168.2.32
2 * * * Request timed out.
3 * * * Request timed out.
(the rest is omitted, all timeouts)
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 5.0.0.1 5.131.104.16 9256
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.104 25
5.0.0.0 255.0.0.0 On-link 5.131.104.16 9256
5.131.104.16 255.255.255.255 On-link 5.131.104.16 9256
5.255.255.255 255.255.255.255 On-link 5.131.104.16 9256
81.149.144.21 255.255.255.255 192.168.2.1 192.168.2.104 26
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.2.0 255.255.255.0 On-link 192.168.2.104 281
192.168.2.0 255.255.255.0 192.168.2.32 192.168.2.23 26
192.168.2.23 255.255.255.255 On-link 192.168.2.23 281
192.168.2.104 255.255.255.255 On-link 192.168.2.104 281
192.168.2.255 255.255.255.255 On-link 192.168.2.104 281
192.168.56.0 255.255.255.0 On-link 192.168.56.1 276
192.168.56.1 255.255.255.255 On-link 192.168.56.1 276
192.168.56.255 255.255.255.255 On-link 192.168.56.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.56.1 276
224.0.0.0 240.0.0.0 On-link 5.131.104.16 9256
224.0.0.0 240.0.0.0 On-link 192.168.2.104 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.56.1 276
255.255.255.255 255.255.255.255 On-link 5.131.104.16 9256
255.255.255.255 255.255.255.255 On-link 192.168.2.104 281
255.255.255.255 255.255.255.255 On-link 192.168.2.23 281
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 5.0.0.1 Default
===========================================================================
在虚拟机上:
C:\Documents and Settings\Administrator>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 0c 29 dc a2 c1 ...... VMware Accelerated AMD PCNet Adapter
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.3 192.168.2.11 10
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.2.0 255.255.255.0 192.168.2.11 192.168.2.11 10
192.168.2.11 255.255.255.255 127.0.0.1 127.0.0.1 10
192.168.2.255 255.255.255.255 192.168.2.11 192.168.2.11 10
224.0.0.0 240.0.0.0 192.168.2.11 192.168.2.11 10
255.255.255.255 255.255.255.255 192.168.2.11 192.168.2.11 1
Default Gateway: 192.168.2.3
===========================================================================
Persistent Routes:
None
C:\Documents and Settings\Administrator>tracert 192.168.2.23
Tracing route to 192.168.2.23 over a maximum of 30 hops
1 * * * Request timed out.
2 * ^C
C:\Documents and Settings\Administrator>tracert 192.168.2.3
Tracing route to 2003server.mycompany.local [192.168.2.3]
over a maximum of 30 hops:
1 1 ms <1 ms <1 ms 2003server.mycompany.local [192.168.2.3]
Trace complete.
C:\Documents and Settings\Administrator>tracert 192.168.2.14
Tracing route to ws2001.mycompany.local [192.168.2.14]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms ws2001.mycompany.local [192.168.2.14]
Trace complete.
C:\Documents and Settings\Administrator>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : vm1
Primary Dns Suffix . . . . . . . : MyCompany.local
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : MyCompany.local
mycompany.local
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : mycompany.local
Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter
Physical Address. . . . . . . . . : 00-0C-29-DC-A2-C1
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.2.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.3
DHCP Server . . . . . . . . . . . : 192.168.2.3
DNS Servers . . . . . . . . . . . : 192.168.2.3
Primary WINS Server . . . . . . . : 192.168.2.3
Lease Obtained. . . . . . . . . . : 25 February 2011 22:23:31
Lease Expires . . . . . . . . . . : 05 March 2011 22:23:31
答案1
在这种配置中,最好确保您的虚拟机使用带有 LAN 接口的桥接以太网连接,这样它们基本上应该像 LAN 客户端工作站一样运行。
另外值得排除的是,您的 vpn 或 vm 的子网与 vpn 远程端的本地 IP 不同吗?如果是这样,您可能遇到了一些路由问题
答案2
听起来你可能没有为虚拟机安装正确的网络连接。你使用的是桥接设备还是 nat 设备?你是否将 附加到主机上的 wan 或 lan 接口?你是否正确设置了端口转发?如果你提供更多实施细节,我认为我们更有可能找到哪部分线路缺失。
答案3
请阅读此内容。如果没有帮助,它将解释虚拟机网络设置。
http://communities.vmware.com/thread/83874
可能会为你指明新的方向,并希望取得成功的结果
您能否从 VPN 客户端运行 tracert 到虚拟主机?反之亦然。结果如何?