Skip to content

Linux tracepath command (draw a path)

The tracepath command in Linux traces a path between the host and a network address and tries to find out what the MTU (Maximum Transmission Unit) is. The tracepath is a good replacement for traceroute.

It also has a similar command for IPv6: tracepath6.

Example:

$ tracepath www.kernel.org 1: ns1.certificacaolinux.com.br (72.26.225.74) 0.306ms pmtu 1500 1:72-26-224-1.meganetserve.net (72.26.224.1) 134.005ms 2: reply no 3: no reply 4: no reply 5: isc.sjc06. atlas.cogentco.com (154.54.13.218) 5,693ms

6: int-0-2-0.r1.pao1.isc.org (149.20.65.18) asymm 4 5,010ms 7: pub2.kernel.org (204.152,191.37) asymm 5 3,635ms reached Resume: pmtu 1500 hops 7 back 5 It tries to find the average response time for each step along the way and returns the final MTU, the number of hosts for the packets to go from the host to the destination, and tries to predict the number of hosts from the destination to the host if the route is asymmetric (there is more than one path).

Learn much more about Linux in our online course. You can register here. If you already have an account, or want to create one, just log in or create your user here.

Did you like it?

Share