traceroute
Использование
net tools traceroute [-h] [--to_file] [-P PROTO] [-I NAME] [-a ADDRESS] [-f FIRST-TTL] [-m MAX-TTL] [-p PORT] [-s PACKETSIZE] [-i INTERVAL] [-Q TOS] [-r] [-w] [-c COUNT] [-j] [-n] [-b] [-o FIELDS] [-y NUMBER] [-z] [HOSTNAME]
Описание
Утилита отображает маршрут, пройденный IP-пакетами к указанному сетевому узлу.
Аргументы
HOSTNAME
- destination hostname--to_file
- Redirect output to file (/tmp/cli-stdout.txt).-P
- PROTO, --proto PROTO use selected protocol instead of ICMP-I
- NAME, --interface NAME use named network interface-a
- ADDRESS, --address ADDRESS bind the outgoing socket to ADDRESS-f
- FIRST-TTL, --first-ttl FIRST-TTL set what TTL to start-m
- MAX-TTL, --max-ttl MAX-TTL maximum number of hops-p
- PORT, --port PORT target port number for TCP, SCTP, or UDP-s
- PACKETSIZE, --psize PACKETSIZE set the packet size used for probing-i
- INTERVAL, --interval INTERVAL ICMP echo request interval-Q
- TOS, --tos TOS type of service field in IP header-r,
- --report output using report mode-w,
- --report-wide output wide report-c
- COUNT, --report-cycles COUNT set the number of pings sent-j,
- --json output json-n,
- --no-dns do not resolve host names-b,
- --show-ips show IP numbers and host names-o
- FIELDS, --order FIELDS select output fields-y
- NUMBER, --ipinfo NUMBER select IP information in output-z,
- --aslookup display AS number
Примеры использования
Tracing the route to a host in interactive mode using ICMP ECHO and specifying the interval of requests:
net tools traceroute -i 0.5 <HOSTNAME>
Tracing the route to a host in report mode using TCP SYN packets and specifying the destination port:
net tools traceroute -r <HOSTNAME> -P tcp -p 443
Tracing the route to a host in report mode using UDP packets and setting the maximum packet size and their number:
net tools traceroute -r <HOSTNAME> -P udp -s 1500 -c 100
Performing a host availability check in JSON mode using TCP SYN packets and setting the starting TTL:
net tools traceroute -j <HOSTNAME> -P tcp -p 443 -f 64