Technical data

traceroute
-p port
Sets the base UDP port number used in probes. (The default value is 33434.) The
traceroute
command presumes that nothing is listening on UDP ports
base
to
base+nhops-1
at the destination host (so an ICMP ‘‘port unreachable’’ message is
returned to terminate the route tracing). If another process is listening on a port
in the default range, use this option to pick an unused port range.
-Q maxquit
Stops probing this hop after the number of consecutive timeouts specified by
maxquit
are detected. The default value is 5. Useful in combination with
-S
if
you have specified a big
nqueries
probe count.
-q nqueries
Sets the number of probes launched at each TTL setting. The default is 3.
-r
Bypasses the normal routing tables and sends directly to a host on an attached
network. If the host is not on a directly attached network, an error is returned.
This option can be used to ping a local host through an interface that has no
route through it (for example, after the interface was dropped by ROUTED or
GATED).
-S
Prints a summary of per-hop minimum/average/maximum rtt (round-trip time)
statistics. This flag suppresses the per-probe rtt and TTL reporting. To obtain
more detailed statistics, increase the default
nqueries
probe count. For more
information, see also the
-Q
option.
-s src_addr
Uses the following IP address (which must be given as an IP number, not as a
host name) as the source address in outgoing probe packets. On hosts with more
than one IP address, this option can be used to force the source address to be
something other than the IP address of the interface on which the probe packet is
sent. If the IP address is not one of this machine’s interface addresses, an error
is returned and nothing is sent.
-v
Lists any received ICMP packets other than TIME_EXCEEDED and
UNREACHABLE.
-w waittime
Sets the time (in seconds) to wait for a response to a probe. The default is 3
seconds.
Parameters
host
Specifies the name or IP address of the destination host. This parameter is
required.
packetsize
Specifies the default length for a probe datagram. This parameter is optional.
The default is 38 bytes.
A–50 Troubleshooting Utilities Reference