![Forrest logo](/images/logo.png)
tracepath:tldr:f8611
tracepath: Use only IPv6 addresses.
$ tracepath -6 ${host}
try on your machine
The command "tracepath -6 ${host}" is used to trace the route that IPv6 packets take from your local computer to a destination host. Here's a breakdown of the command:
- "tracepath": It is a network diagnostic tool used to trace the path of IP network packets from source to destination.
- "-6": This option specifies that you want to trace the route using IPv6 instead of the default IPv4. It is the shorthand for "--version 6".
- "${host}": This is a placeholder that should be replaced with the actual hostname or IP address of the destination you want to trace the route to. For example, if you want to trace the route to example.com, you would replace ${host} with "example.com".
When you run this command with the appropriate host value, it will initiate a series of ICMP (Internet Control Message Protocol) Echo Request packets that are incrementally time-to-live (TTL) restricted. Each packet will have its TTL increased by one starting from one, and tracepath will listen for ICMP Time Exceeded messages received from each intermediate hop. By analyzing the packets and received responses, tracepath is able to provide you with information about each hop along the route to the provided destination, such as IP addresses and round-trip times (RTT).
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.