Name
traceroute
Synopsis
traceroute [options
]host
[packetsize
]
Traces the route taken by packets to reach network host. traceroute attempts tracing by launching UDP probe packets with a small TTL (time to live), then listening for an ICMP “time exceeded” reply from a gateway. host
is the destination hostname or the IP number of host to reach. packetsize
is the packet size in bytes of the probe datagram. Default is 38 bytes.
Options
- -d
Turn on socket-level debugging.
-
-f
ttl
Set the TTL for the first probe packet.
- -F
Set the “don’t fragment” bit.
-
-g
gateway
Set a loose gateway.
-
-i
interface
Specify the interface for outgoing packets.
-
-m
max_ttl
Set maximum time-to-live used in outgoing probe packets to
max-ttl
hops. Default is 30 hops.- -n
Show numerical addresses; don’t look up hostnames. (Useful if DNS is not functioning properly.)
-
-p
port
Set base UDP port number used for probe packets to
port
. Default is (decimal) 33434.-
-P
prototype
Specify the protocol to use: UDP, TCP, GRE or ICMP.
-
-q
n
Set number of probe packets for each time-to-live setting to the value
n
. Default is 3.- -r
Bypass normal routing tables and send directly to a host on an attached network.
-
-s
src_addr
Use
src_addr
as the IP address that will serve as the source address in outgoing probe packets.-
-t
tos
Set the type-of-service in probe packets to tos(default 0). The value must be a decimal integer in the range 0 to 255.
- -v
Verbose; received ICMP packets (other than
TIME_EXCEEDED
andPORT_UNREACHABLE
) will be ...
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.