traceroute
Traces the route taken by packets over an IPv4/IPv6 network. Displays the IP number and host name of machines along the route to diagnose network connectivity problems.
Description
The traceroute utility displays the route used by IP packets on their way to a specified network host. It shows the IP number and host name (if possible) of the machines along the route taken by the packets. Traceroute is used as a network debugging tool to identify where connectivity problems originate along the route.
Install traceroute if you need a tool for diagnosing network connectivity issues. It helps pinpoint trouble spots in network paths, making it essential for troubleshooting latency, packet loss, or routing failures.
The package includes variants like traceroute.db and traceroute6.db for IPv4 and IPv6, along with advanced tools such as lft.db, tcptraceroute.db, traceproto.db, and traceroute-nanog for specialized tracing needs.
How It Works
Traceroute sends packets with incrementally increasing TTL (Time to Live) values to the target host. Each router along the path decrements the TTL and sends an ICMP Time Exceeded message when TTL reaches zero, revealing the router's IP and hostname. This process maps the full route hop-by-hop to the destination.
Installation
sudo apt install tracerouteFlags
Examples
traceroute.db --helplft.db --helptcptraceroute.db -htraceproto.db -htraceroute-nanog -htraceroute6.db --helptraceroute.db host packetlen