您的位置:首页 > 其它

ping -r和Tracert的区别

2011-01-09 13:42 225 查看
前日看书,发现Ping命令中的一个参数(Win的-r和Linux中的-R)可以显示路由路径,而用tracert也可以显示路由路径,遂有疑问,区别是什么?

一凡在网上查证,发现原来二者分别显示的是路由路径的出口和入口:

ping显示每一个节点的出口:

Pinging 163.xdwscache.glb0.lxdns.com [114.80.143.196] with 32 bytes of data:

Reply from 114.80.143.196: bytes=32 time=33ms TTL=57

Route: 58.38.205.13 ->

222.72.255.78 ->

222.72.255.77 ->

124.74.215.25 ->

124.74.186.201 ->

114.80.143.57 ->

114.80.143.65 ->

114.80.143.196 ->

而tracert现实的则是每个路由器的入口:

C:\Documents and Settings\redcats2>tracert www.163.com

Tracing route to 163.xdwscache.glb0.lxdns.com [114.80.143.196]

over a maximum of 30 hops:

1 3 ms 2 ms 1 ms buffalo.setup [192.168.11.1]

2 12 ms 10 ms 15 ms 124.74.0.197

3 12 ms 12 ms 15 ms 222.72.255.93

4 96 ms 59 ms 11 ms 124.74.210.121

5 24 ms 18 ms 17 ms 124.74.254.58

6 15 ms 14 ms 18 ms 124.74.186.206

7 12 ms 14 ms 18 ms 114.80.143.62

8 16 ms 14 ms 14 ms 114.80.143.196
本文出自 “redcats” 博客,请务必保留此出处http://redcats.blog.51cto.com/162730/475143
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: