Trace IPv6 hops to 2001:db8::20.
Display numeric addresses without reverse DNS.
Which command is appropriate?
traceroute -6 -n selects IPv6 and numeric output while tracing each intermediate hop.
Detailed explanation
traceroute -6 -n 2001:db8::20Correct. It traces the IPv6 route without reverse lookup.
Correct. It traces the IPv6 route without reverse lookup.
traceroute -4 -n 2001:db8::20Incorrect. -4 forces IPv4 and cannot target an IPv6 address.
Incorrect. -4 forces IPv4 and cannot target an IPv6 address.
ping -6 -n 2001:db8::20Incorrect. ping tests reachability but does not enumerate hops.
Incorrect. ping tests reachability but does not enumerate hops.
netstat -6 -n 2001:db8::20Incorrect. netstat shows local information, not a remote hop trace.
Incorrect. netstat shows local information, not a remote hop trace.
Try it yourself
An example you can run in a temporary verification environment.
traceroute --help 2>&1 | sed -n '1,10p'Expected result
IPv4/IPv6選択や-nを含む使用方法Key points
- -6 selects IPv6
- -n selects numeric output
- Trace each hop
Notes
- Environment: traceroute help / 外部通信なし
- 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.