Перейти к содержанию

ping

Использование

ping [-h] [--to_file] [-c <count>] [-D] [-I <source>] [-i <interval>] [-n] [-O] [-q] [-s <size>] [-t <ttl>] [-W <timeout>] <destination>

Описание

Пинг целевого хоста.

Аргументы

  • destination - Destination.
  • --to_file - Redirect output to file (/tmp/cli-stdout.txt).
  • count - replies.
  • -D - Print timestamps.
  • source - Interface name or IP address.
  • interval - Seconds between sending each packet.
  • -n - No dns name resolution.
  • -O - Report outstanding replies.
  • -q - Quiet output.
  • size - as number of data bytes to be sent.
  • ttl - Define time to live.
  • timeout - Time to wait for response.

Примеры использования

  • ping -c 3 10.10.10.101
  • ping -I mgmt 10.10.10.101
  • ping -I 10.10.10.100 10.10.10.101