Specifications
traceroute
312
traceroute
Displays the route (the route of gateways that have been passed through and the response
time between the gateways) over which UDP messages are sent to the destination host.
Syntax
traceroute [-m <Max hops>] [-w <Timeout>] <IP address>
Input mode
User mode and administrator mode
Parameters
-m <Max hops>
Specifies the maximum number of hops permitted to the destination IP address. The
specifiable values are from 1 to 255.
Operation when this parameter is omitted:
The maximum number of hops is 30.
-w <Timeout>
Specifies the timeout time for replies from relay gateways. Specify a number of
seconds from 1 to 60.
Operation when this parameter is omitted:
The reply timeout time is 5 seconds.
<IP address>
The host IP address of the test destination.
Operation when all parameters are omitted:
The same as described in Operation when this parameter is omitted for each
parameter.
Example
Figure 21-8 Normal end
> traceroute -m 2 -w 1 192.168.0.10
1 <10ms <10ms <10ms 192.168.0.10
Trace complete.
>
Figure 21-9 Destination in the same subnet
> traceroute -m 2 -w 1 192.168.0.5
traceroute to 192.168.0.5, over a maximum of 2 hops,
1 * * * Request timed out.
2 * * * Request timed out.
Trace complete.
>
Figure 21-10 Destination in another subnet
> traceroute -m 2 -w 1 192.168.2.2
traceroute to 192.168.2.2, over a maximum of 2 hops,
1 reports: Destination host Unreachable.
Trace complete.
>