ping

Windows CMD · Network · available in the simulator

What it does

Tests connectivity using ICMP.

Syntax

ping [-t] [-a] [-n número] [-l tamaño] destino

Options and parameters

  • -t

    Pings the target host continuously until stopped by pressing Ctrl+C.

  • -a

    Resolves the address to a hostname.

  • -n

    Number of echo requests to send.

    ping -n 4 example.com
  • -l

    Send buffer size in bytes.

  • -f

    Sets the Don't Fragment flag on packets, IPv4 only.

  • -i

    TTL value.

  • -w

    Wait time in milliseconds for each reply.

  • -S

    Source address to use.

  • -4

    Forces the use of IPv4.

  • -6

    Forces the use of IPv6.

Usage examples

  • ping 8.8.8.8
  • ping -n 4 example.com

Notes and common mistakes

  • Unlike Linux ping, options use a hyphen and not a slash.
Practise ping

Related commands