Subscribe:

Ads 468x60px

Pages

Tuesday, April 5, 2011

PING command

PING:


PING stands for Packet Internet Groper. This is the tool that diagnosis ICMP protocols troubles on ICMP network. Within TCP/IP there are many protocols(i.e TCP, UDP, etc..). There is one protocols sweep in TCP protocol is called ICMP(Internet Control Messaging Protocol) protocol. It is regularly designed for facilitate troubleshooting or diagnosing problems of IP based network.

To view the full path of ping command:
#which ping
/bin/ping

To view the package of the ping command:
#rpm -qf ping
iputils-200020927-2

Ping on a client or on host or on server realize on client interface to the ICMP protocol. So when pinging on host functioning as client. The host that responses functioning as server to response on our request. When you ping a host or requests to the host then it is called an echo request  and when host replies then it is called an echo reply.

Ping function as client server protocol. ping is used for diagnosis and also used for DNS resolution (It is way to test whether the DNS resolution is working or not).

#ping www.yahoo.com

It's going on responding util pressing the Ctrl+c. When
Unless we break the process using Ctrl+c or It never end. Ping sends packets within one second

If name resulotion is not functioning on this machine, the response will not come back. Then see the name resolution settings. Those name resolutions are responding. So then to test the name resolution on your system simply use the dig and nslookup tools. It is another way to ping the host.

To send only 3 pings to server instead of sending indefinite number of times:
#ping -c 3 www.yahoo.com


To send only 6 pings to server:
#ping -c 6 www.yahoo.com

if any sort of firewalls or routers at the edge of the network prevents ping echo requests type8 and also it prevents echo response type0 from leaving the network consequently we can ping the network  in between our machine and other machine which you want to ping. Then chances are ping will work. Does mean that host is down. It simply means the ICMP is been blocked. 

0 comments:

Post a Comment