Testing and Troubleshooting A LAN - jude-lindale/Wiki GitHub Wiki
-
ping: Command used to test that a device on the network is reachable
-
Usage ping[-t][-a][-n count)[-1 size][-f -i TTL][-v TOS] [-r count][-s
count]
[[-j host-list]:[-k host-list][-w timeout] destination-list
Options
-t Ping the specified host until stopped
To see statistics and continue, type Control-Break
To stop, type Control-C
-a Resolve addresses to host-names
-n count Number of echo requests to send
-1 size Send buffer size
-f Set Don’t Fragment flag in packet
-I
TTL Time To Live v
TOS Type Of Service
r count Record route for count hops
s count Timestamp for count hops
j host-list Loose source route along host-list
k host-list Strict source route along host-list
w timeout in milliseconds to wait for each reply
- The following is an example of pinging another computer on the network to verify that the computers are communicating. In this example, computer 1 is used to ping computer 2. Remember that the ping command is executed from the command window:
ping 10.10.10.2
Pinging 10.10.10.2 with 32 bytes of data:
Reply from 10.10.10.2: bytes 32 time<1ms TTL 128
Reply from 10.10.10.2: bytes 32 time<1ms TTL 128
Reply from 10.10.10.2: bytes 32 time<1ms TTL 128
Reply from 10.10.10.2: bytes 32 time<1ms TTL 128
Ping statistics for 10.10.10.2:
- The text shows that 32 bytes of data is being sent to the computer with the IP address 10.10.10.2. “Reply from 10.10.10.2” indicates that computer 2 received the message. If the computer at IP address 10.10.10.2 did not respond, the message “Request timed out.” is displayed:
_ping 10.10.10.2
Pinging 10.10.10.2 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.10.10.2:
Packets: Sent = 4, Received = 0, Lost= 4
(100% loss),_ Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms