traceroute

>Usage

The traceroute command is used to trace the path that packets take from your computer to a remote destination. It shows each "hop" or router the packet passes through. This is useful for network troubleshooting to diagnose routing problems or identify delays in the network.

You can use it by typing traceroute [destination], where "destination" can be a domain or IP address. The command will then display the route, showing each hop along the way and its round-trip time.

>Synopsis

traceroute [option] [destination]

>Options

-m

This option helps you limit the depth of the trace. It's useful when you don't want the traceroute command to continue running indefinitely if the destination is too far.

Example:

Dots

-m

> traceroute -m 15 www.example.com


Tracing route to www.example.com with maximum 15 hops...

-p

This option allows you to specify the destination port. This is helpful if you want to trace a specific service (e.g., HTTP on port 80 or HTTPS on port 443).

Example:

Dots

-p

> traceroute -p 80 www.example.com


Tracing route to www.example.com using port 80 (HTTP)

-T

This makes traceroute use TCP packets instead of the default UDP packets. This is useful if ICMP traffic is being filtered by firewalls or routers along the route.

Example:

Dots

-T

> traceroute -T www.example.com


Tracing route to www.example.com using TCP packets...

-I

This option forces traceroute to use ICMP Echo requests instead of the default UDP packets. This mimics the behavior of the ping command and is useful when ICMP is allowed but UDP is blocked.

Example:

Dots

-I

> traceroute -I www.example.com


Tracing route to www.example.com using ICMP Echo requests...

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Selcan Kaya