ping命令显示路由 请求超时

不会飞的小笨 2014-09-13 10:44:48
最近在学习计算机网络,在windows下想用 ping 命令看一下路由 ,可是请求超时
用 ping 202.108.22.5 正常通信 ,没有错误
202.108.22.5 是百度的ip



正常通信
但如果是用 ping 202.108.22.5 -n 1 -r 9 显示路由,就会显示请求超时(ping -n 1 -r 9 202.108.22.5 也一样)

这是为什么,为什么不能显示路由?
先谢过大家了,我用的是校园局域网,能正常上网的
...全文
1821 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
不会飞的小笨 2014-09-14
  • 打赏
  • 举报
回复
要看路由还是不要用ping命令了,用tracert吧,这个好使
空心兜兜 2014-09-14
  • 打赏
  • 举报
回复
-r 9 这个参数…………
沭水河畔 2014-09-13
  • 打赏
  • 举报
回复
ping的这个用法还真没用过。 下面摘自FreeBSD的ping手册: -R Record route. Includes the RECORD_ROUTE option in the ECHO_REQUEST packet and displays the route buffer on returned packets. Note that the IP header is only large enough for nine such routes; the traceroute(8) command is usually better at determining the route packets take to a particular destination. If more routes come back than should, such as due to an illegal spoofed packet, ping will print the route list and then truncate it at the correct spot. Many hosts ignore or discard the RECORD_ROUTE option. 最后一句话提到许多主机忽略或者无视ping包中的RECORD_ROUTE选项。 楼主可以改用traceroute(Unix/Linux)或者tracert(Windows)来跟踪路由路径。 至于不支持的具体原因,可用Wireshark抓包看一下,有新发现跟大家分享啊~

3,805

社区成员

发帖
与我相关
我的任务
社区描述
硬件使用 交换及路由技术相关问题讨论专区
社区管理员
  • 交换及路由技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧