Skip to content

Ping

PING

Increase or Decrease ping TTL

  • Example: Wait for 5 seconds before sending the next packet.

    1
    ping -i 5 IP
    
  • Example: Wait 0.1 seconds before sending the next packet.

    1
    ping -i 0.1 IP
    

Send n packets and stop

1
    ping -n 10 <IP|Domain>

Continuous Ping

  • Start before you reboot a remote server or VM
  • Make sure you have a backup console if remote!!!
    1
    ping -t <IP|Domain>
    

Hostname Lookup with Ping

1
    ping -a <IP>

Ping Localhost

  • Tests own protocol stack
    1
    ping 127.0.0.1
    

PING IPv6

1
    ping -t -6 <IP|Domain>

Change the Packet Size

1
    ping -l 1500 <IP|Domain>

Ping of Death (Ping Flood Buffer Overflow Attempt)

  • -l: Buffer size
  • -w: wait timeout in ms
  • -n: number of echo requests
  • Script is to loop infinitely
    1
    2
    3
    4
    :loop
    
    ping <IP|Domain> -l 65500 -w 1 -n 1
    goto :loop