Command:

traceroute


Mode:

Router#


Syntax:

traceroute

 

Syntax Description:

Protocol [ip]: Prompts for a supported protocol. Enter appletalk, clns, ip, novell, apollo, vines, decnet, or xns. Default: ip.
Target IP address: You must enter a host name or an IP address. There is no default.
Source address: The interface or IP address of the router to use as a source address for the probes. The router normally picks the IP address of the outbound interface to use.
Numeric display [n]: The default is to have both a symbolic and numeric display; however, you can suppress the symbolic display.
Timeout in seconds [3]: The number of seconds to wait for a response to a probe packet. The default is 3 seconds.
Probe count [3]: The number of probes to be sent at each TTL level. The default count is 3.
Minimum Time to Live [1]: The TTL value for the first probes. The default is 1, but it can be set to a higher value to suppress the display of known hops.
Maximum Time to Live [30]: The largest TTL value that can be used. The default is 30. The traceroute command terminates when the destination is reached or when this value is reached.
Port Number [33434]: The destination port used by the UDP probe messages. The default is 33434.
Loose, Strict, Record, Timestamp, Verbose[none]: IP header options. You can specify any combination. The traceroute command issues prompts for the required fields. Note that the traceroute command will place the requested options in each probe; however, there is no guarantee that all routers (or end nodes) will process the options.

 

Command Description:

The purpose behind the traceroute command is to record the source of each ICMP "time exceeded" message to provide a trace of the path the packet took to reach the destination.


Example:

The following is sample output from the traceroute command:

Router#traceroute
Protocol [ip]:
Target IP address: 192.168.40.2
!--- The address to which the path is being traced.
Source address: 172.16.23.2
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 192.168.40.2
  1 172.31.20.2 16 msec 16 msec 16 msec
  2 172.20.10.2 28 msec 28 msec 32 msec
  3 192.168.40.2 32 msec 28 msec *
!--- Traceroute is successful.


Misconceptions:

None.


Related Commands:

None.


© Cisco Systems, Inc. 2001, 2002
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)