2019-03-11 05:55:22 +00:00
|
|
|
|
# pathping
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 一种结合了`ping`和`tracert`功能的跟踪路由工具。
|
2021-10-01 19:28:01 +01:00
|
|
|
|
> 更多信息:<https://docs.microsoft.com/windows-server/administration/windows-commands/pathping>.
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- Ping 并追踪主机的路由:
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 不要对主机名执行 IP 地址的反向查找:
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}} -n`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 指定要搜索目标的最大跃点数(默认值为 30):
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}} -h {{最大跃点数}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 指定 ping 之间等待的毫秒数(默认值为 240):
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}} -p {{时间}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 指定每跳的查询数(默认值为 100):
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}} -q {{查询语句}}`
|
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
|
- 强制使用 IPV4:
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}} -4`
|
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
|
- 强制使用 IPV6:
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping {{主机名}} -6`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 显示详细的使用帮助:
|
2019-03-11 05:55:22 +00:00
|
|
|
|
|
|
|
|
|
`pathping /?`
|