Skip to content

Traceroute

Traceroute, also called tracert, is a utility that uses ICMP packets to record the route through the internet from one computer to another. It calculates the time taken for each hop as the packet is routed to the destination. To guarantee accuracy, each hop is queried multiple times to better measure the response of that particular hop.

Usage

traceroute [options] <ip address>

Or

traceroute [options] <target name>

options

  • -4 : Use ip version 4 i.e. use IPv4
  • -6 : Use ip version 6 i.e. use IPv6
  • -F : Do not fragment packet.
  • -f first_ttl : Start from the first_ttl hop (instead from 1).
  • -g gate : Route the packet through gate
  • -m max_ttl : Set the max number of hops for the packet to reach the destination.Default value is 30
  • -n : Do not resolve IP addresses to their domain names.
  • -p port : Set the destination port to use. Default is 33434.
  • -q nqueries : Set the number of probes per each hop. Default is 3
  • packetlen : The full packet length. Default len is 60 byte packets.
  • –help :Display help messages and exit.