2-1119
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands traceroute
tracerouteTo display a hop-by-hop path through an IP network from the Catalyst 6500 series switch to a specific
destination host, use the traceroute command.
traceroute [-n] [-w wait_time] [-i initial_ttl] [-m max_ttl] [-p dest_port] [-q nqueries] [-t tos]
host [data_size]
Syntax Description
Defaults Entering the traceroute host command without options sends three 40-byte ICMP datagrams with an
initial TTL of 1, a maximum TTL of 30, a timeout period of 5 se conds , and a ToS specification of 0 to
destination UDP port number 33434. For eac h host in t he pr ocess ed pa th, th e i niti al TTL for ea ch h ost
and the destination UDP port number for each packet sent are incremented by one.
Command Types Switch command.
Command Modes Privileged.
-n (Optional) Option that prevents traceroute from performing a DNS lookup for each
hop on the path. Only numerical IP addresses are printed.
-w wait_time (Optional) Option used to specify the amount of time (in seconds) that traceroute will
wait for an ICMP response message. The allowed range for wait_time is from
1 to 300 seconds.
-i initial_ttl (Optional) Option that causes traceroute to send ICMP datagrams with a TTL value
equal to initial_ttl instead of the default TTL of 1. This causes traceroute to skip
processing for hosts that are less than initial_ttl hops away.
-m max_ttl (Optional) Option used to specify the maximum TTL value for outgoing ICMP
datagrams. The allowed range for max_ttl is from 1to 255.
-p dest_port (Optional) Option used to specify the base UDP destination port number used in
traceroute datagrams. This value is incremented each time a datagram is sent. The
allowed range for dest_port is from 1 to 65535. Use this option in the unlikely event
that the destination host is listening to a port in the default traceroute port range.
-q nqueries (Optional) Option used to specify the number of datagrams to send for each TTL value.
The allowed range for nqueries is from 1 to 1000.
-t tos (Optional) Option used to specify the ToS to be set in the IP header of the outgoing
datagrams. The allowed range for tos is from 0to255.
host IP alias or IP address in dot notation (a.b.c.d) of the destination host.
data_size (Optional) Number of bytes, in addition to the default of 40 bytes, of the outgoing
datagrams. The allowed range is from 0 to142 0.