The ping Command

The ping Command

Ping command is used to test the accessibility of a computer on an IP network and to measure the round-trip time (RTT) for information sent from a source computer to a destination computer. The ping command is used for two purposes: first, to find out if a host is responding and second, to find out if you can reach a host.

The syntax of the in command with the address of network is as follows:

Ping [IP Address]

Option Description
-t Allows you to ping the specified IP address until you forcefully stop the connand. To view the statistics, press Ctrl+Break and to stop press ctrl+c key combination.
-a Allows you to resolve address to hostnames.
-n count Specifies hoe many times the echo request is send to host.
-l size Allow you to set the size of the buffer.
-f Applies to the Don’t fragment flag in the packet (IPv4-online)
-i TTL Specifies time to live
-v TOS Specifies the types of service
-r count Allow you to record route for count hops (IPv4-only).
-s count Allows you to specify the timestamp for count hops (IPv4-only).
-j host-list Allows you to specify a loose source route along the host-list (IPv4-only).
-k host-list Allows you to specify a strict source route along the host-list (IPv4-only).
-w timeout Specifies the time in milliseconds taken between each response to given ping query.
-R Allows you to use the routing header to test the reverse route.
-S srcaddr Specifies the source address to use.
-4 Allows you to forcefully use the IPA 4.
-6 Allows you to forcefully use the IPv6.


If you want to continuously ping the IP address, you need to type the following command:

Ping –t [ip address]

Leave a Reply

Your email address will not be published. Required fields are marked *