Custom Search

Thursday, April 2, 2015

How to tracepath find network route or path


1)
$ tracepath 172.168.56.2
 1:  10.0.2.15                                             0.356ms pmtu 1500
 1:  10.0.2.2                                              0.714ms
 1:  10.0.2.2                                              0.639ms
 2:  100.112.192.1                                        28.440ms asymm 64
 3:  172.31.176.65                                        29.376ms asymm 63
 4:  172.16.31.0                                          38.543ms asymm 62
 5:  172.16.31.6                                          29.301ms asymm 61
 6:  49.44.8.0                                            30.145ms asymm 60
 7:  49.45.4.255                                          30.140ms asymm 59
 8:  49.45.4.105                                         157.489ms asymm 58
 9:  49.45.4.105                                         157.929ms asymm 57
10:  ae-4-90.edge3.Washington1.Level3.net                274.796ms asymm 56
11:  ae-1-60.edge3.Washington1.Level3.net                275.966ms asymm 55
12:  aol-level3-10G.WashingtonDC1.level3.net             275.321ms asymm 54
13:  aol-level3-10G.WashingtonDC1.level3.net             278.341ms asymm 53
14:  dar2-mtc-xe-2-1-0.atdn.net                          277.343ms asymm 52
15:  no reply
16:  no reply
17:  no reply
18:  no reply
19:  no reply


* 10.0.2.2 is gateway of the VM where i executed this tracepath command.

* 100.112.192.1 is the gateway of the laptop where the VM is running.



2)
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    100    0        0 eth0
10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.3     0.0.0.0         255.255.255.255 UH    0      0        0 vhost0
192.168.56.0    0.0.0.0         255.255.255.0   U     0      0        0 vhost0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
saju@ubuntu:~/mytools/opencontrail$


3)
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         100.112.192.1   0.0.0.0         UG    0      0        0 wlan0
100.112.192.0   0.0.0.0         255.255.192.0   U     9      0        0 wlan0
192.168.56.0    0.0.0.0         255.255.255.0   U     0      0        0 vboxnet0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0



No comments:

Post a Comment