using the ping commands

12
PING Commands Computer System Servicing JMLT

Upload: zole-zimbabwe

Post on 13-Jan-2017

91 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Using the ping commands

JMLT

PING CommandsComputer System Servicing

Page 2: Using the ping commands

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

JMLT

Ping commands used to diagnose network connectivity

Page 4: Using the ping commands

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

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

JMLT

Page 7: Using the ping commands

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

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

JMLT

A response of "Destination net unreachable" means there was no route to the destination. 

Page 10: Using the ping commands

JMLT

Ping –a (Resolves addresses to hostnames if possible)

No –a option

Page 11: Using the ping commands

JMLT1 2 3 4 5

Send 5 ICMP echo message to Desktop 1 with 150 bytes of data.

Page 12: Using the ping commands

JMLT

https://technet.microsoft.com/en-us/library/cc732509(v=ws.10).aspxhttp://ipcisco.com/wp-content/uploads/Ping/ping_topology_2.jpg