我现在正在使用万维网,正如在StackOverflow上发布的那样。但是,如果我从命令行尝试ping stackoverflow.com
,则ping超时。 ping是否需要做什么工作?
> ping stackoverflow.com
Pinging stackoverflow.com [198.252.206.140] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 198.252.206.140:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
tracert
> tracert stackoverflow.com
Tracing route to stackoverflow.com [198.252.206.140] over a maximum of 30 hops:
1 * * * Request timed out.
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 * * * Request timed out.
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
...
Trace complete.
它是Request timed out.
一直到30跳。
ping google.com
结果相同。 : - )
答案 0 :(得分:4)
某些主机具有阻止ICMP(http://ca.wikipedia.org/wiki/Internet_Control_Message_Protocol)数据包(如ping)的防火墙。您可以使用traceroute(cmd行工具或在线网络,如http://ping.eu/traceroute/)或tcptraceroute(http://linux.die.net/man/1/tcptraceroute)。
某些路由器还具有阻止ICMP的防火墙。您可以通过ping google.com
检测到这一点。它失败了,那么你的本地路由器就有问题,而不是远程主机。
希望它可以帮到你