Command
Traceroute
Use
Allows you trace the path a router takes to get to a given destination. Traceroute is a good troubleshooting tool since it lets you verify optimal routing and routing loops.
Syntax
Router#traceroute <ip address or DNS name>
Example
In the below example, traceroute is used to see what path the router takes to get to google.com.
2611XM#traceroute google.com Translating “google.com”…domain server (10.10.2.1) [OK] Type escape sequence to abort. 1 10.10.2.1 0 msec 4 msec 0 msec |
Afterwards, traceroute is used to find a routing loop.
R1(config)#do trace 9.9.9.9 Type escape sequence to abort. 1 10.1.1.2 36 msec 44 msec 24 msec |