tracert
嚯嚯 发表于 2020-06-22 16:29浏览次数:
tracert命令显示的网络数据包被发送和接收,以及该分组需要多少跳能到达其目的地。使用Microsoft Windows 2000和Windows XP的用户遇到其他网络延迟和丢失信息时,也可考虑使用pathping命令。
The tracert command displays a network packet being sent and received, as well as the number hops required for that packet to get to its destination. Users with Microsoft Windows 2000 and Windows XP who need additional network latency and loss information should also consider using the pathping command.
目录:
1 tracert 运行系统环境
2 tracert 语法
3 tracert 示例
tracert 运行系统环境
Windows 95
Windows 98
Windows xp
Windows vista
Windows 2000
Windows 7
Windows 8
Windows 10
Windows NT
Windows ME
tracert 语法
Windows Vista, 7, 8的tracert语法
tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
选项:
-d
|
不将地址解析成主机名。
|
-h maximum_hops
|
搜索目标的最大跃点数。
|
-j host-list
|
与主机列表一起的松散源路由(仅适用于 IPv4)。
|
-w timeout
|
等待每个回复的超时时间(以毫秒为单位)。
|
-R
|
跟踪往返行程路径(仅适用于 IPv6)。
|
-S srcaddr
|
要使用的源地址(仅适用于 IPv6)。
|
-4
|
强制使用 IPv4。
|
-6
|
强制使用 IPv6。
|
Windows XP 及更低版本的tracert语法
tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
选项:
-d
|
不要将地址解析为主机名。
|
-h maximum_hops
|
搜索目标的最大跳数。
|
-j host-list
|
主机列表中的源路由松散。
|
-w timeout
|
每个回复的等待超时时间(以毫秒为单位)。
|
Windows Vista, 7, and 8 syntax
tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
Options
-d
|
Do not resolve addresses to hostnames.
|
-h maximum_hops
|
Maximum number of hops to search for the target.
|
-j host-list
|
Loose source route along host-list (IPv4-only).
|
-w timeout
|
Wait timeout in milliseconds for each reply.
|
-R
|
Trace round-trip path (IPv6-only).
|
-S srcaddr
|
Specifies the source address to use (IPv6-only).
|
-4
|
Force using IPv4.
|
-6
|
Force using IPv6.
|
Windows XP and lower syntax
tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
Options
-d
|
Do not resolve addresses to hostnames.
|
-h maximum_hops
|
Maximum number of hops to search for the target.
|
-j host-list
|
Loose source route along host-list.
|
-w timeout
|
Wait timeout in milliseconds for each reply.
|
tracert 示例
以下是当我们在www.computerhope.com上使用tracert命令时的结果示例。如您所见,由于我们的位置很近,该数据包在到达目的地的途中几乎没有跳数,而且回复时间很短。
tracert computerhope.com
1 169 ms 190 ms 160 ms slc1-tc.xmission.com [166.70.1.20]
2 159 ms 160 ms 190 ms cisco0-tc.xmission.com [166.70.1.1]
3 165 ms 189 ms 159 ms www.computerhope.com [166.70.10.23]
Below is an example of the result when we used the tracert command on www.computerhope.com. As you can see, the packet had very few hops and short reply times on its way to its destination due to our close location.
tracert computerhope.com
1 169 ms 190 ms 160 ms slc1-tc.xmission.com [166.70.1.20]
2 159 ms 160 ms 190 ms cisco0-tc.xmission.com [166.70.1.1]
3 165 ms 189 ms 159 ms www.computerhope.com [166.70.10.23]