Use traceroute to display the IPv6 hops to 2001:db8::20.
Do not force IPv4.
Which command is appropriate?
traceroute -6 traces IPv6 packets by varying the hop limit and observing intermediate router responses.
Detailed explanation
traceroute -6 2001:db8::20Correct. It traces the IPv6 path to the destination.
Correct. It traces the IPv6 path to the destination.
traceroute -4 2001:db8::20Incorrect. -4 forces IPv4 and conflicts with the IPv6 destination.
Incorrect. -4 forces IPv4 and conflicts with the IPv6 destination.
ping -6 2001:db8::20Incorrect. ping tests reachability but does not list the hop sequence.
Incorrect. ping tests reachability but does not list the hop sequence.
ip -6 route show 2001:db8::20Incorrect. ip -6 route show displays local routes rather than measuring remote hops.
Incorrect. ip -6 route show displays local routes rather than measuring remote hops.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'traceroute -6 -> IPv6 hop sequence'Expected result
traceroute -6 -> IPv6 hop sequenceKey points
- -6 selects IPv6
- Use the hop limit
- Different from local route display
Notes
- Environment: tracerouteの動作対応表(外部通信なし)
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.