traceroute -w
时间: 2023-10-27 15:06:40 浏览: 44
traceroute -w参数用于设置等待每个设备的响应时间。它指定在等待设备响应之前要等待的时间(以毫秒为单位)。默认情况下,每个设备的响应时间为5秒。您可以使用-w参数来更改这个时间。例如,如果您想将等待时间更改为10秒,您可以使用traceroute -w 10000命令。这将使traceroute等待10秒钟以获取每个设备的响应。
相关问题
Traceroute --help
`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 服务器的路径。
traceroute 20大指令
Traceroute是一种网络诊断工具,用于跟踪网络数据包从源到目的地的路径。以下是20个常用的traceroute命令:
1. traceroute [IP address] - 使用默认端口(UDP 33434)跟踪到目标IP地址的路径。
2. traceroute -T [IP address] - 使用TCP协议而不是UDP跟踪目标IP地址的路径。
3. traceroute -I [IP address] - 使用ICMP协议而不是UDP跟踪目标IP地址的路径。
4. traceroute -U [IP address] - 使用UDP协议而不是默认端口跟踪目标IP地址的路径。
5. traceroute -p [port] [IP address] - 使用指定端口号跟踪目标IP地址的路径。
6. traceroute -n [IP address] - 禁用DNS反向解析,以IP地址的形式显示路径。
7. traceroute -q [queries] [IP address] - 指定查询次数。
8. traceroute -w [timeout] [IP address] - 指定等待时间。
9. traceroute -m [max hops] [IP address] - 指定最大跳数。
10. traceroute -s [source address] [IP address] - 指定源地址。
11. traceroute -f [first hop] [IP address] - 指定起始跳数。
12. traceroute -r [IP address] - 使用强制路由跟踪目标IP地址的路径。
13. traceroute -g [gateway] [IP address] - 指定网关。
14. traceroute -i [interface] [IP address] - 指定接口。
15. traceroute -e [IP address] - 启用扩展模式,显示路由器IP地址和名称。
16. traceroute -A [IP address] - 启用AS路径跟踪。
17. traceroute -B [IP address] - 启用流跟踪。
18. traceroute -z [pause] [IP address] - 指定发送数据包之间的延迟时间。
19. traceroute -l [length] [IP address] - 指定数据包大小。
20. traceroute -m [max hops] -f [first hop] [IP address] - 指定最大跳数和起始跳数。
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)