Ad space (banner)
📡Networking Lessons
Lesson 22 / 39

Tracing the Path with traceroute

When traffic isn't getting through and you want to know how far it gets, use traceroute. It walks the path to the destination and displays each intermediate device (router) along the way, in order.

The syntax is traceroute destination-ip. The response time of each hop (waypoint) on the path is shown one line at a time.

Running traceroute 8.8.8.8 lists the IP address and response time of every intermediate device between you and 8.8.8.8, hop by hop.

A common stumble is confusing it with ping. Ping answers only "does it reach or not"; trace answers "how far does it get, and where does it stop."

In real work, it pairs with ping as the investigative command for pinpointing which waypoint is swallowing your traffic during an outage.

Networking
Try it (type this into the pseudo terminal)
traceroute 8.8.8.8

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)