路由运行在同一个盒子上的PPTP客户端和VMware Server实例

我有一个Windows 2003 SBS框。 它有2个物理网卡:WAN和LAN。 广域网是一个公共IP。 局域网是一个带有Microsoft DHCP服务器的简单的192.168.2.x子网。 Microsoft路由和远程访问服务用于提供NAT到局域网。 此外,该服务器还运行带有运行Windows XP的虚拟机的VMware Server。 我希望人们能够将VPN插入盒子,并连接到MSRDP端口上的这些虚拟机。 我可以将VPN(PPTP)放入2003 SBS盒中,也可以在局域网上ping其他机器。

  • 我可以从LAN上的物理工作站ping虚拟机,反之亦然。
  • 我可以从LAN上的物理工作站ping VPN客户端,反之亦然。
  • 我可以从VPN客户端ping服务器
  • 编辑:我无法从服务器ping VPN客户端!
  • 我可以从服务器控制台ping VM客户端,反之亦然。
  • 但是我无法从虚拟机Ping VPN客户端,反之亦然。

我希望在我们唯一的服务器上安装2个或3个Windows XP虚拟机,这样一来,几个人就可以使用VPN,然后RDP进行工作,而不必在办公室留下物理机器。 你可以尝试设立一个“穷人terminal服务器”。

在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 =========================================================================== 

在VM上: –

 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 

在这个configuration中,通常最好确保你的虚拟机使用LAN接口的桥接以太网连接,这样,它们应该基本上像局域网客户端工作站一样工作。

另外值得一提的是,你的vpn或者vm的子网是不是和你在vpn远端的本地IP一样? 如果是这样,你可能有一些路由问题

这听起来像你可能没有你的虚拟机补丁与正确的networkingtypes。 你使用桥接设备还是NAT设备? 你在主机上添加了wan或lan接口吗? 你有没有设置端口转发权? 如果您再详细介绍几个实现细节,我想我们更容易find缺less哪个接线位。

读一下这个。 如果没有帮助,它将解释vmnetworking设置。

http://communities.vmware.com/thread/83874

可能会指向一个新的方向,希望取得成功的结果

你能从VPN客户端运行一个tracert到虚拟主机吗? 和副反对。 结果是什么?