Traceroute

You can trace a route to a specific destination using the below command:

Reference

Command

traceroute <ip address | hostname> [source <source address>]

Description

Trace the route to a specific destination

Parameters

ip address Destination IP address (ipv4/ipv6) of the host

hostname Name of the host

source ip address Source IP address to use

Mode

EXEC

Example

pbnoscli# traceroute 192.168.0.98
traceroute to 192.168.0.98 (192.168.0.98), 30 hops max, 60 byte packets
1 192.168.0.98 (192.168.0.98) 0.312 ms 0.182 ms 0.302 ms
pbnoscli# 
pbnoscli# traceroute yahoo.com
traceroute to yahoo.com (98.137.11.163), 30 hops max, 60 byte packets
1 RT-AC68R-9030 (192.168.0.1) 0.391 ms 0.246 ms 0.260 ms
2 10.0.0.1 (10.0.0.1) 2.300 ms 3.027 ms 4.116 ms
3 96.120.88.81 (96.120.88.81) 21.899 ms 23.213 ms 21.734 ms
4 be-10009-rur01.sanjose.ca.sfba.comcast.net (162.151.30.225) 22.136 ms 24.994 ms 25.081 ms
5 be-231-rar01.santaclara.ca.sfba.comcast.net (162.151.78.249) 26.639 ms 26.077 ms 27.910 ms
6 be-299-ar01.santaclara.ca.sfba.comcast.net (68.86.143.93) 28.441 ms 14.089 ms 16.809 ms
7 lag-14.ear3.SanJose1.Level3.net (4.68.72.105) 64.404 ms 63.871 ms 21.365 ms
8 * * *
9 YAHOO-INC.ear3.Seattle1.Level3.net (4.16.168.186) 49.019 ms 47.647 ms 48.411 ms
10 ae-5.pat1.gqb.yahoo.com (216.115.101.111) 50.127 ms 47.827 ms 49.460 ms
11 et-18-1-0.msr2.gq1.yahoo.com (66.196.67.115) 46.600 ms et-19-1-0.msr1.gq1.yahoo.com
(66.196.67.99) 61.098 ms et-18-1-0.msr2.gq1.yahoo.com (66.196.67.115) 33.044 ms
12 et-1-0-0.clr1-a-gdc.gq1.yahoo.com (67.195.37.93) 40.249 ms et-1-1-0.clr2-a-gdc.gq1.yahoo.com
(67.195.37.75) 39.213 ms et-1-1-0.clr1-a-gdc.gq1.yahoo.com (67.195.37.71) 39.544 ms

13 lo0.fab1-2-gdc.gq1.yahoo.com (68.180.235.2) 46.348 ms 37.615 ms lo0.fab6-2-gdc.gq1.yahoo.com
(68.180.235.7) 41.677 ms
14 lo0.fab6-1-gdc.gq2.yahoo.com (98.136.159.242) 42.179 ms lo0.fab7-1-gdc.gq2.yahoo.com
(98.136.159.241) 41.243 ms lo0.fab2-1-gdc.gq2.yahoo.com (98.136.159.246) 39.892 ms
15 usw2-1-lbc.gq2.yahoo.com (98.136.158.193) 48.383 ms usw1-1-lbc.gq2.yahoo.com (98.136.158.192)
47.446 ms usw2-1-lbc.gq2.yahoo.com (98.136.158.193) 37.298 ms
16 media-router-fp74.prod.media.vip.gq1.yahoo.com (98.137.11.163) 38.066 ms 33.298 ms 39.219 ms
pbnoscli# 
pbnoscli# traceroute 2001:db8:85a3::8a2e:370:7444
traceroute to 2001:db8:85a3::8a2e:370:7444 (2001:db8:85a3::8a2e:370:7444), 30 hops max, 80 byte
packets
1 2001:db8:85a3::8a2e:370:7334 (2001:db8:85a3::8a2e:370:7334) 3070.486 ms !H 3070.360 ms !H
3070.319 ms !H
pbnoscli#