PING tests the connection between two network nodes by sending packets to a host and then reporting the time it takes to get a response. The nodes can be in a Local Area Network, Wide Area Network or anywhere on the internet. To ping an IP address, follow these instructions.
Steps
Go to Start > Run and type cmd. You can also search for cmd.exe in the Windows Search function.
Press OK to launch Windows Command.
Type ping (hostname goes here) or ping (IP address goes here).
- For example, to ping wikiHow’s main web server, type ping www.naijadigits.blogspot.com.
To have your PC ping itself, type ping 127.0.0.1.
Hit Enter to see your ping output.
Linux
1. Open a telnet/TERMINAL window.
2. Type ping (hostname goes here) or ping (IP address goes here). For example, to ping hackdigits’s main web server, type ping www.hackdigits.blogspot.com. To have your PC ping itself, type ping 127.0.0.1.
3. Hit Enter to see your ping output.
Mac OS X
1. Go to Applications folder > Utilities > Network Utility.
2. Click on the Ping tab and specify a domain or IP Address. For example, to ping wikiHow’s main web server, type ping www.wikihow.com.
3. Click Ping.
Ping Output
1. The first line of output: This describes what ping is going to do. For example:
ping example.com
PING example.com (192.0.32.10): 56 data bytes
2. The ensuing lines of output: If the packet ping sends to the target host arrives, is echoed back and received, ping will display lines like:
64 bytes from 192.0.32.10: icmp_seq=0 ttl=240 time=98.767 ms
64 bytes from 192.0.32.10: icmp_seq=1 ttl=240 time=96.521 ms
64 bytes from 192.0.32.10: icmp_seq=2 ttl=240 time=95.766 ms
64 bytes from 192.0.32.10: icmp_seq=3 ttl=240 time=95.638 ms
64 bytes from 192.0.32.10: icmp_seq=4 ttl=240 time=95.414 ms
64 bytes from 192.0.32.10: icmp_seq=5 ttl=240 time=93.367 ms
* You may need to press CTRL+C to stop ping.
3. The final lines of output: Ping will then summarize the results like:
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 93.367/95.912/98.767/1.599 ms
If ping fails
1. One of the failures ping reports is:
ping: cannot resolve example.com: Unknown host
This usually means that the you have misspelled the hostname. Try another hostname like example.com (really). If that reports “Unknown host,” then the problem is most likely the address of the domain name server.
* Ping using the host’s IP address instead of its name (ex. 192.0.32.10). If this is successful then either the address you are using for the domain name server is incorrect or it is unreachable or down.
2. Another error message is:
ping: sendto: No route to host
This may mean the address of the gateway is incorrect or that the connection from your PC is not up and running.
* Ping 127.0.0.1: that's your own PC. If this fails, the network configuration or the NIC (Network Interface Card) may be bad. Replace the NIC or add a new one (they are really cheap these days).
* Check the cable from your PC to your router, especially if the connection worked previously.
* Most PC NIC ports have an indicator light that indicates a good connection and one that blinks as data is transferred. As the ping command transmits packets at about 1 per second, you should be able to see the data light blink.
* Check that the router has the proper indicators light (and no faults), including the one that indicates a good connection to your PC. If a fault indicator is on, follow the cable from your PC to the router to make sure it is properly connected, then call your cable or broadband provider if necessary.
* Boot a live CD. This is a system that will automatically set up the NIC and let you use a ping to verify that all the hardware is working. It does not do anything to your hard disk and when you're done, just boot your regular system.
No comments:
Post a Comment