Correct answer: B) traceroute
traceroute is the standard Linux utility used to map the full hop-by-hop path that packets take from your machine to a remote destination. It shows each router (hop) along the route and the latency to each one, which makes it ideal for diagnosing routing issues.
Quick breakdown of the options:
A) ip addr → Shows IP addresses and interfaces on your local machine only.
B) traceroute → Displays the path packets take across the network (correct).
C) ip route add → Used to manually add routes to the routing table.
D) nmcli → NetworkManager tool for configuring network connections, not tracing paths.
If you're debugging connectivity, traceroute (or tracepath on some systems) is the go-to tool.
TEST YOUR LINUX NETWORKING KNOWLEDGE
You suspect a routing issue and want to view the full hop-by-hop path packets take from your Linux machine to a remote server.
Which command should you use?
A) ip addr
B) traceroute
C) ip route add
D) nmcli