Display the routers and replies along the path to 198.51.100.20.
The goal is to find the path, not only test reachability.
Which command is appropriate?
traceroute changes TTL or hop limit progressively and uses intermediate responses to estimate the hop sequence.
Detailed explanation
ping 198.51.100.20Incorrect. ping tests echo reachability but does not list intermediate hops.
Incorrect. ping tests echo reachability but does not list intermediate hops.
traceroute 198.51.100.20Correct. It traces the path through intermediate routers.
Correct. It traces the path through intermediate routers.
ss -nt 198.51.100.20Incorrect. ss displays local socket information.
Incorrect. ss displays local socket information.
ip route show 198.51.100.20Incorrect. It displays the local routing table rather than measuring each hop.
Incorrect. It displays the local routing table rather than measuring each hop.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'traceroute -> hop 1, hop 2, ... destination'Expected result
traceroute -> hop 1, hop 2, ... destinationKey points
- Increase TTL progressively
- Display intermediate hops
- Some hops may not reply
Notes
- Environment: 動作対応表の表示のみ
- 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.