← 返回命令列表

Linux command

traceroute6 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Trace the route to an IPv6 host

traceroute6 [host]

Trace with numeric output only

traceroute6 -n [host]

Set maximum hop limit

traceroute6 -m [60] [host]

Start from a specific hop

traceroute6 -f [5] [host]

Use ICMP ECHO instead of UDP

traceroute6 -I [host]

Set the number of probes per hop

traceroute6 -q [5] [host]

Specify source address

traceroute6 -s [source_address] [host]

说明

traceroute6 traces the route IPv6 packets take to reach a destination host. It exploits the IPv6 hop limit field by sending probes with increasing limits, eliciting ICMPv6 TIME_EXCEEDED responses from each router along the path. Each line of output shows the hop number, gateway address (and hostname unless -n is used), and round-trip times for each probe. The trace continues until the destination responds or the maximum hop limit is reached. The command is equivalent to traceroute -6 and sends UDP datagrams by default. Use -I for ICMPv6 ECHO probes instead.

参数

-n
Do not resolve addresses to hostnames
-m _hoplimit_
Maximum hop limit (default: 30, max: 255)
-f _firsthop_
Start probes at specified hop (skip earlier hops)
-I
Use ICMPv6 ECHO instead of UDP datagrams
-N
Use packets with no upper layer header
-p _port_
Set destination UDP port
-q _probes_
Number of probes per hop (default: 3)
-s _src_
Use specified source address
-w _waittime_
Wait time in seconds for responses
-g _gateway_
Specify intermediate gateway (uses routing header)

FAQ

What is the traceroute6 command used for?

traceroute6 traces the route IPv6 packets take to reach a destination host. It exploits the IPv6 hop limit field by sending probes with increasing limits, eliciting ICMPv6 TIME_EXCEEDED responses from each router along the path. Each line of output shows the hop number, gateway address (and hostname unless -n is used), and round-trip times for each probe. The trace continues until the destination responds or the maximum hop limit is reached. The command is equivalent to traceroute -6 and sends UDP datagrams by default. Use -I for ICMPv6 ECHO probes instead.

How do I run a basic traceroute6 example?

Run `traceroute6 [host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n do in traceroute6?

Do not resolve addresses to hostnames