Traceroute command snippets
Command snippets for Traceroute.
Specify TTL
On Windows systems, add
-h [max_ttl]
command after
tracert
to specify the max TTL:
tracert -h 5 google.com
On MacOS or Linux systems, add
-m [max_ttl]
command after
traceroute
to specify the max TTL. Here is an example of setting max TTL to 5:
traceroute -m 5 google.com