我在 Windows Server 2008/12 上工作。
我有两个接口:一个 PPTP 隧道和 LAN 卡,我想通过它们 ping 一个 IP 来比较它们的结果。根据文档,这应该可以通过ping -S default_gateway_for_interface
现在,当我通过默认接口的网关时,这有效,但我得到
PING: transmit failed. General failure.
当我通过 PPTP 隧道的网关时。有什么线索吗?
我在 Windows Server 2008/12 上工作。
我有两个接口:一个 PPTP 隧道和 LAN 卡,我想通过它们 ping 一个 IP 来比较它们的结果。根据文档,这应该可以通过ping -S default_gateway_for_interface
现在,当我通过默认接口的网关时,这有效,但我得到
PING: transmit failed. General failure.
当我通过 PPTP 隧道的网关时。有什么线索吗?
你让我对“默认网关”的事情感到困惑。源地址是您从其 ping 的设备上的地址,而不是该子网的网关。
假设我的电脑上有两个地址,10.11.12.13 和 172.16.17.18。我想 ping 相应的接口(逻辑或物理)。我使用计算机上的每个地址从源 (-S) ping,而不是这些地址的网关。
例如,我的一台计算机上有一个 VPN 隧道和一个物理接口,每台计算机都有 IP 地址。VPN 不允许我在隧道另一端的网络外 ping。
假设它们的寻址方式如下: Tunnel= 172.16.17.18
, Ethernet= 10.11.12.13
。
C:\>ping -S 10.11.12.13 time1.google.com
pinging time1.google.com [216.239.32.15] from 10.11.12.13 with 32 bytes of data:
Reply from 216.239.32.15 bytes=32 time=21 ms TTL=43
Reply from 216.239.32.15 bytes=32 time=22 ms TTL=43
Reply from 216.239.32.15 bytes=32 time=23 ms TTL=43
Reply from 216.239.32.15 bytes=32 time=22 ms TTL=43
Ping statistics for 216.239.32.15:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:
Minimum = 21ms, Maximum = 23ms, Average = 22ms
C:\>ping -S 172.16.17.18 time1.google.com
pinging time1.google.com [216.239.32.15] from 172.16.17.18 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 216.239.32.15:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\>
可以在命令行中添加:route ADD xxxx MASK xxx GatewayXXXX
在GatewayXXXX的位置,你一次放置一个网关,然后删除路由并放置下一个,穿过另一个链接,改变GatewayXXXX。
我认为以这种形式,您可以比较 te 结果