1、ping 127.0.0.1
2、ping 本地ip
3、ping 网关ip
4、ping 一个远程主机ip
5、ping 远程主机名
Ping 通常会返回以下四条错误消息:
TTL Expired in Transit
此错误消息表示所需跃点的数目超过了“生存时间”(TTL)。通过使用 ping-i 参数增加 TTL。可能存在路由循环。使用 tracert 命令检查是否是配置有问题的路由器导致了路由循环。
Destination Host Unreachable
此错误消息表示在发送主机或路由器上不存在目标主机的本地或远程路由。对本地主机或路由器的路由表进行故障排除。
Request Timed Out
此错误消息表示在指定的超时时间(默认值是 4 秒)内未收到回显答复消息。使用 ping -w 命令增加超时值。
Ping request could not find host
此错误消息表示无法解析目标主机名。验证 DNS 或 WINS 服务器的名称和可用性。检查 IP 安全设置。
哥哥:
这个你问我才知道 你PING的IP不对 因为你PING的是对方本地的IP地址 你应该PING对方外网的IP地址才行 对方外网的地址你要问他才知道 如果是ADSL上网的话 外网IP是可变的 就是说每次上网可能不一样 至于查看自己的外网IP 可以到百度搜索 如果是路由器拨号上网的话 可以到路由器的运行状态下看
Request Timed Out 表示请求超时
ping 222.245.230.9 -t表示不断的PING对方 不加T表示只PING 4次 其实只PING4次已经知道结果了
C:\Documents and Settings\Administrator>ping www.baidu.com -t
Pinging www.a.shifen.com [119.75.217.56] with 32 bytes of data:
Reply from 119.75.217.56: bytes=32 time=63ms TTL=55
Reply from 119.75.217.56: bytes=32 time=60ms TTL=55
Reply from 119.75.217.56: bytes=32 time=60ms TTL=55
Reply from 119.75.217.56: bytes=32 time=57ms TTL=55
Reply from 119.75.217.56: bytes=32 time=58ms TTL=55
Reply from 119.75.217.56: bytes=32 time=59ms TTL=55
Ping statistics for 119.75.217.56:
Packets: Sent = 6, Received = 6, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 57ms, Maximum = 63ms, Average = 59ms
这样的就表示通了,看time值~~!越大表示延迟越高
网络不通。没有连接
请求超时