??下例说明如何向 IP 地址 172.16.48.10 发送两个 Ping,每个都是 1,450 字节:
??C:\>ping -n 2 -l 1450 172.16.48.10
??Pinging 172.16.48.10 with 1450 bytes of data:
??Reply from 172.16.48.10:bytes=1450 time<10ms TTL=32
??Reply from 172.16.48.10:bytes=1450 time<10ms TTL=32
??Ping statistics for 157.59.8.1:
??Packets:Sent = 2, Received = 2, Lost = 0 (0% loss),
??Approximate roundtrip times in milli-seconds:
??Minimum = 0ms, Maximum = 10ms, Average = 2ms
??Tracert 命令按顺序打印出返回“ICMP 已超时”消息的路径中的近端路由器接口列表。如果使用 -d 选项,则Tracert 实用程序不在每个 IP 地址上查询 DNS。
??在下例中,数据包必须通过两个路由器(10.0.0.1 和 192.168.0.1)才能到达主机172.16.0.99。主机的默认网关是 10.0.0.1,192.168.0.0 网络上的路由器的 IP 地 址是 192.168.0.1。
??C:\>tracert 172.16.0.99 -d
??Tracing route to 172.16.0.99 over a maximum of 30 hops
??1 2s 3s 2s 10,0.0,1
??2 75 ms 83 ms 88 ms 192.168.0.1
??3 73 ms 79 ms 93 ms 172.16.0.99
??Trace complete.
??用 tracert 解决问题
??可以使用 tracert 命令确定数据包在网络上的停止位置。下例中,默认网关确定 192.168.10.99 主机没有有效路径。这可能是路由器配置的问题,或者是 192.168.10.0 网络不存在(错误的 IP 地址)。
??C:\>tracert 192.168.10.99
??Tracing route to 192.168.10.99 over a maximum of 30 hops
??1 10.0.0.1 reportsestination net unreachable.
??Trace complete.