Send documentation comments to mdsfeedback-doc@cisco.com
23-47
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 23 T Commands
traceroute
traceroute
To print the route an IP packet takes to a network host, use the traceroute command in EXEC mode.
traceroute [ipv6] [hostname [size packet-size] | ip-address] | hostname | ip-address]
Syntax Description
Defaults None.
Command Modes EXEC mode.
Command History
Usage Guidelines This command traces the route an IP packet follows to an Internet host by launching UDP probe packets
with a small TTL (time to live) and then listening for an ICMP (Internet Control Message Protocol) “time
exceeded” reply from a gateway.
Note Probes start with a TTL of one and increase by one until encountering an ICMP “port unreachable.” This
means that the host was accessed or a maximum flag was found. A line is printed showing the TTL,
address of the gateway, and round-trip time of each probe. If the probe answers come from different
gateways, the address of each responding system is printed.
Examples The following example prints the route IP packets take to the network host www.cisco.com.
switch# traceroute www.cisco.com
traceroute to www.cisco.com (171.71.181.19), 30 hops max, 38 byte packets
1 kingfisher1-92.cisco.com (172.22.92.2) 0.598 ms 0.470 ms 0.484 ms
2 nubulab-gw1-bldg6.cisco.com (171.71.20.130) 0.698 ms 0.452 ms 0.481 ms
3 172.24.109.185 (172.24.109.185) 0.478 ms 0.459 ms 0.484 ms
4 sjc12-lab4-gw2.cisco.com (172.24.111.213) 0.529 ms 0.577 ms 0.480 ms
5 sjc5-sbb4-gw1.cisco.com (171.71.241.174) 0.521 ms 0.495 ms 0.604 ms
6 sjc12-dc2-gw2.cisco.com (171.71.241.230) 0.521 ms 0.614 ms 0.479 ms
7 sjc12-dc2-cec-css1.cisco.com (171.71.181.5) 2.612 ms 2.093 ms 2.118 ms
8 www.cisco.com (171.71.181.19) 2.496 ms * 2.135 ms
ipv6 Traces a route to an IPv6 destination.
hostname Specifies a host name. Maximum length is 64 characters.
size packet-size Specifies a packet size. The range is 0 to 64.
ip-address Specifies an IP address.
Release Modification
1.0(2) This command was introduced.
3.0(1) Added the ipv6 argument.