Traceroute --help
时间: 2023-10-08 19:04:04 浏览: 94
traceroute
`traceroute` 是一个用于网络故障排除和网络性能分析的命令行工具。 它可以显示从本地计算机到目标计算机的路径,以及每个节点的延迟和丢包情况。
以下是 `traceroute` 命令的帮助信息:
```
Usage: traceroute [-nrv] [-m <max_ttl>] [-p <port>] [-q <nqueries>] [-s <src_addr>] [-t <tos>] [-w <wait>] <host>
Options:
-m <max_ttl> Set the maximum number of hops to <max_ttl> (default: 30)
-p <port> Set the destination port to <port> (default: 33434)
-q <nqueries> Set the number of probes per hop to <nqueries> (default: 3)
-s <src_addr> Set the source address to <src_addr> (default: the primary IP address of the local host)
-t <tos> Set the IP type of service to <tos> (default: 0)
-w <wait> Set the time to wait for a response to each probe to <wait> seconds (default: 5)
-n Do not resolve hostnames to IP addresses
-r Bypass the normal routing tables and send directly to each hop
-v Verbose output (include IP addresses and port numbers)
```
可以使用 `traceroute` 命令加上对应的选项和目标主机名或 IP 地址来使用该命令。例如,`traceroute www.google.com` 将显示到 Google 服务器的路径。
阅读全文