Download - Using the ping commands
![Page 1: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/1.jpg)
JMLT
PING CommandsComputer System Servicing
![Page 2: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/2.jpg)
JMLT
The ping command helps to verify IP-level connectivity. When troubleshooting, you can use ping to send an ICMP echo request to a target host name or IP address.
ICMP: Internet Control Message ProtocolTCP/IP: Transmission Control Protocol/Internet Protocol
Use ping whenever you need to verify that a host computer can connect to the TCP/IP network and network resources. You can also use ping to isolate network hardware problems and incompatible configurations.
![Page 3: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/3.jpg)
JMLT
Ping commands used to diagnose network connectivity
![Page 4: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/4.jpg)
JMLT
Command Functionping 127.0.0.1 Ping the loopback address to verify that
TCP/IP is configured correctly on the local computer.
ping IP_of_local_host Ping the IP address of the local computer to verify that it was added to the network correctly.
ping IP_of_default_gateway Ping the IP address of the default gateway to verify that the default gateway is functioning.
ping IP_of_remote_host Ping the IP address of a remote host to verify that you can communicate through a router.
![Page 5: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/5.jpg)
JMLT
Useful ping command optionsOption Use
-n Count Determines the number of echo requests to send. The default is 4 requests.
-w Timeout Enables you to adjust the timeout (in milliseconds). The default is 4,000 (a 4-second timeout).
-l Size Enables you to adjust the size of the ping packet. The default size is 32 bytes.
-f Sets the Do Not Fragment bit on the ping packet. By default, the ping packet allows fragmentation.
/? Provides command Help.
![Page 6: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/6.jpg)
JMLT
![Page 7: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/7.jpg)
JMLT
The following example illustrates how to send two pings, each 50 bytes in size, to IP address 192.168.100.5:
![Page 8: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/8.jpg)
JMLT
By default, ping waits 4,000 milliseconds (4 seconds) for each response to be returned before displaying the "Request Timed Out" message.
![Page 9: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/9.jpg)
JMLT
A response of "Destination net unreachable" means there was no route to the destination.
![Page 10: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/10.jpg)
JMLT
Ping –a (Resolves addresses to hostnames if possible)
No –a option
![Page 11: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/11.jpg)
JMLT1 2 3 4 5
Send 5 ICMP echo message to Desktop 1 with 150 bytes of data.
![Page 12: Using the ping commands](https://reader036.vdocuments.us/reader036/viewer/2022062503/5878586d1a28ab18098b471b/html5/thumbnails/12.jpg)
JMLT
https://technet.microsoft.com/en-us/library/cc732509(v=ws.10).aspxhttp://ipcisco.com/wp-content/uploads/Ping/ping_topology_2.jpg