Files
tldr/pages.zh/linux/tcptraceroute.md

28 lines
698 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# tcptraceroute
> 使用 TCP 数据包的 traceroute 实现。
> 更多信息请访问: <https://github.com/mct/tcptraceroute>。
- 跟踪到主机的路由:
`tcptraceroute {{host}}`
- 指定目标端口和数据包长度(以字节为单位):
`tcptraceroute {{host}} {{destination_port}} {{packet_length}}`
- 指定本地源端口和源地址:
`tcptraceroute {{host}} -p {{source_port}} -s {{source_address}}`
- 设置第一个和最大 TTL
`tcptraceroute {{host}} -f {{first_ttl}} -m {{max_ttl}}`
- 指定等待时间和每跳的查询次数:
`tcptraceroute {{host}} -w {{wait_time}} -q {{number_of_queries}}`
- 指定接口:
`tcptraceroute {{host}} -i {{interface}}`