Forrest logo
tool overview
On this page you find all important commands for the CLI tool traceroute. If the command you are looking for is missing please ask our AI.


Traceroute is a command line tool used for network diagnostics and troubleshooting in computer networks. It is available on various operating systems, including Linux, macOS, and Windows. The tool allows users to trace the route taken by packets between their device and a destination IP address or domain name.

Traceroute works by sending a series of Internet Control Message Protocol (ICMP) or User Datagram Protocol (UDP) packets with incrementally increasing Time-To-Live (TTL) values. Each packet is then sent towards the destination, and the TTL value determines how many hops or routers the packet can pass through before being discarded. By analyzing the ICMP Time Exceeded messages returned by routers, traceroute can determine the IP addresses of the routers along the path.

The output of traceroute includes the IP addresses of routers along the route, along with the round-trip times (RTTs) for each router. The tool also provides information about the geographical location and Autonomous System Numbers (ASNs) of the routers, which can be helpful in identifying network issues.

Traceroute helps identify network congestion, packet loss, and routing problems. It can assist in diagnosing slow connections, identifying bottlenecks, or determining the point of failure in network communication. Additionally, it allows network administrators to visualize the path that packets take, measure latency, and optimize network routing.

Traceroute supports various options and flags, such as specifying the protocol (ICMP or UDP), setting the maximum number of hops, configuring the packet size, or defining the time interval between packets. These options enable users to customize the traceroute behavior based on their specific requirements.

While traceroute provides valuable network insights, it is important to note that it may not always complete successfully. Some network configurations and firewalls can block ICMP or UDP packets, leading to incomplete or inaccurate results. In such cases, alternate methods like using tools such as mtr (My TraceRoute) or pathping can be employed.

Traceroute is widely used by network administrators, internet service providers, and network engineers for both diagnostic purposes and network optimization. It remains a fundamental tool in understanding network connectivity and troubleshooting network issues.

List of commands for traceroute:

tool overview