Tracing the route from the switch to a host address

The traceroute command enables you to trace the route from the switch to a host address.

This command outputs information for each (router) hop between the switch and the destination address. Note that every time you execute traceroute, it uses the same default settings unless you specify otherwise for that instance of the command.

Syntax:


traceroute {<ip-address | hostname>}

traceroute6 {<ip-address | hostname>}

Lists the IP address or hostname of each hop in the route, plus the time in microseconds for the traceroute packet reply to the switch for each hop.


{< ip-address | hostname >}

The IP address or hostname of the device to which to send the traceroute.


[minttl < 1-255 >]
For the current instance of traceroute, changes the minimum number of hops allowed for each probe packet sent along the route.
  • If minttl is greater than the actual number of hops, the output includes only the hops at and above the minttl threshold. (The hops below the threshold are not listed.)

  • If minttl matches the actual number of hops, only that hop is shown in the output.

  • If minttl is less than the actual number of hops, all hops are listed.

For any instance of traceroute, if you want a minttl value other than the default, you must specify that value.(Default: 1)

[maxttl < 1-255 >]

For the current instance of traceroute, changes the maximum number of hops allowed for each probe packet sent along the route.If the destination address is further from the switch than maxttl allows, traceroute lists the IP addresses for all hops it detects up to the maxttl limit.For any instance of traceroute, if you want a maxttl value other than the default, you must specify that value.(Default: 30)


[timeout < 1-120 >]

For the current instance of traceroute, changes the timeout period the switch waits for each probe of a hop in the route. For any instance of traceroute, if you want a timeout value other than the default, you must specify that value.Default: 5 seconds


[probes < 1-5 >]

For the current instance of traceroute, changes the number of queries the switch sends for each hop in the route.For any instance of traceroute, if you want a probes value other than the default, you must specify that value.(Default: 3)


[[source <ip-addr] | [vlan-id>]]

The source IP address or VLAN. The source IP address must be owned by the router. If a VLAN is specified, the IP address associated with the specified VLAN is used.

NOTE:

For information about traceroute6, see the IPv6 configuration guide for your switch.