Traceroute


Traceroute – to print the path from local host to destination address.

Traceroute can be send UDP probe(by default), TCP SYN or ICMP-Echo with TTL value incremented for each hop. Tracing completes once it receives ICMP “port unreachable” message or TCP reset.

Options:

  • -4, -6 – For IPv4 or IPv6
  • -I: For ICMP ECHO probe
  • -T : For TCP-SYN probe
  • -U : for UDP probe
  • -F: set don’t fragment bit
  • -f <first TTL>
  • -m  <max TTL> : To specify maximum number of hops. By default-30
  • -n : Not to resolve hostnames
  • -p <port>:  For UDP, destination port is incremented for each probe starting with <port>
    • For ICMP, destination port is incremented for each probe starting with <port>
    • For TCP, its constant destination port number.

 Example:

[root@server2 ~]# traceroute -n google.com -I -m 16
traceroute: Warning: google.com has multiple addresses; using 74.125.224.83
traceroute to google.com (74.125.224.83), 16 hops max, 38 byte packets
<snip>
11  74.125.224.83  4.753 ms  5.685 ms  4.590 ms
[root@server2 ~]#

Advertisements
This entry was posted in Linux and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s