在 Windows 上跟踪到目标主机的网络路由(tracert)

显示本机到目标之间每一跳路由器的往返延迟,Windows 自带的 traceroute 等价命令。

Windows网络延迟故障排查低风险
运行 tracert example.com(加 -d 可跳过主机名解析)即可列出通往目标路径上的每一跳路由器。

01命令

命令
$ tracert -d example.com

02作用说明

Windows 里这个命令叫 tracert 而不是 traceroute,它发送的是 ICMP 回显请求,而经典 traceroute 用的是 UDP 包,因此某些防火墙对两者的处理不同。大家常忘记 -d 参数:不加它时每一跳都会做反向 DNS 查询,往往这才是命令变慢的主因。-h 30 可限制最大跳数,-w 500 可缩短每跳超时,适合大量路由器不回 ICMP 的情况。

03风险

风险低风险
!注意: 星号(*)表示该跳没有响应 ICMP——很多路由器故意不回或降级处理,所以中途出现星号并不一定代表故障。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • TRACERT - Windows CMD
    SS64 · technical · 2026-09-17
    依据: SS64 lists tracert options including -d (no hostname resolution), -h maximum_hops, and -w timeout per reply.
  • tracert | Microsoft Learn
    Microsoft · vendor-doc · 2026-09-17
    依据: Microsoft documents tracert as determining the path taken to a destination by sending ICMP echo requests with incrementing TTL values, and lists the -d flag to skip reverse DNS lookups.

最后验证: 2026-09-17 · 分类: 网络

06相关方案