Command Line Utilities- How to use Ping Command?

 

Ping Command

Ping command normally used for troubleshooting, it help to check whether the destination host is reachable or not. If the ping timeout period expires then “host unreachable host” message will be shown on command line. 

Following are some essential uses of Ping command

•    Ping your computer to identify whether TCP/IP suite is working properly.
•    Ping directly connected computer or router.
•    Ping beyond your computer.

The following table shows some useful ping command options.

 
image

   Figure-1

clip_image002

Typing this command in run dialog box verifies whether TCP/IP suite is working or not.

clip_image002[6]

 Figure-2

Output of pinging the loopback address shows the active status, so after checking the basic step move further to check the directly connected computer or router.

clip_image002[8]

  Figure-3
Type the ping command and destination address.

clip_image002[10]

Figure-4

Figure-4 show the reply with the default size of ping packet (32-bytes) response time in milliseconds and TTL. The default size of ping packet is 32-byte but it can be changes using the “-lSize” parameter in ping command.

clip_image002[12]
Figure-5
By default ping send 3 echo’s but it can be modified by using “-n Count”. In figure-6 the echo count is set to 5.

clip_image002[14]

Figure-6
Ping packet size is changes from 32 bytes to 1450 bytes.

clip_image002[16]
Figure-7

As a result of previous command the size is change to 1450 as a shown in the figure-8.

clip_image002[18]

Figure-8
“-w (time in millisecond)” parameter in ping command modifies the timeout from 1000 millisecond which is default to 2000 millisecond.

clip_image002[20]

 Figure-9
“-a” argument in ping command resolve the name of host.

clip_image002[22]

Figure-10

Figure-10 show the host name of given IP address.

Be Sociable, Share!

Leave a Reply