traceroute
Lists each router hop on the path to a destination, so you can see where forwarding stops.
Written by a working field network engineer · CCNA, Security+, CySA+
Shows each router hop on the way to a destination by sending probes with increasing TTL values. Where the hops stop is where to start looking.
Example output
R1#traceroute 192.168.20.21
Type escape sequence to abort.
Tracing the route to 192.168.20.21
VRF info: (vrf in name/id, vrf out name/id)
1 10.0.12.2 1 msec 0 msec 1 msec
2 192.168.20.21 1 msec 1 msec 1 msecReference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
traceroute 192.168.20.21traceroute 192.168.20.21 source GigabitEthernet0/0 numerictracert (on a Windows host)
What each column or field means
| Field | Meaning |
|---|---|
Hop number | Each line is one router (or the destination) along the path, in order. |
Address | The interface that answered: the ingress interface of that hop. |
1 msec 0 msec 1 msec | Round-trip time of each of the three probes to that hop. |
* * * | No reply from that hop within the timeout. |
When it doesn’t look right
The trace stops with * * * after a certain hop.
The last responding hop is the last router that knew where to send the packet, or the next hop is filtering. Check the routing table of the next router along the path.
The same two addresses repeat until the trace ends.
A routing loop: two routers point at each other for this destination. Usually two static routes, or a static route fighting a dynamic one.
A middle hop shows * but later hops answer.
That router rate-limits or does not send ICMP time-exceeded. If the destination answers, forwarding is fine.
Related commands
Try it yourself
- Gateway Unreachable: a Mistyped Interface Address (Pro)
- Several Static Routes on One Router (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Troubleshoot a failed ping by checking forward and return paths (3. IP Connectivity)
- Break an IPv4 static routing loop (3. IP Connectivity)
Topic
Static Routing — Read the routing table, add static and default routes in both directions, and prove reachability with ping and traceroute.