GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ss64.com — Ping command - Windows CMD PING.exeTest a network connection - if successful, ping returns the ip address. Syntax
PING [options] destination_host
Options
-w timeout Timeout in milliseconds to wait for each reply, default=4000.
-i TTL Time To Live.
-v TOS Type Of Service.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-t Ping the destination host until interrupted.
To see statistics and continue type Control-Break;
To stop type Control-C.
-l size Send buffer size (default=32).
-f Set don’t Fragment flag in packet (IPv4-only).
-r count Record route for count hops (IPv4-only).
-s count Timestamp for count hops (IPv4-only).
-j host_list Loose source route along host_list (IPv4-only).
-k host_list Strict source route along host_list (IPv4-only).
destination_host The name of the remote host
-R Use routing header to test reverse route also (IPv6-only).
-S srcaddr Source address to use.
-4 Force using IPv4.
-6 Force using IPv6.
A response of "Request timed out" means there was no response within the default time period. A successful PING does NOT always return an %errorlevel% of 0 Ping defaults to an ICMP timeout of 4000ms or 4 seconds. When specifying very small numbers (<500) for timeout with -w , the Ping reply can be received even if timeout milliseconds have elapsed. Timeout
How to test connectivity with ping:
Use PING to create a time delay:
Ping response times below 10 milliseconds often have low accuracy. A time of 10 milliseconds is roughly equal to a distance of 1860 Miles, travelling a straight line route at the speed of light, (or a round trip of 2 × 930 miles). From this you can see that ping response times will give a very very rough estimate of the distance to a remote host. Network adminstrators do not appreciate frequent or continual pings to their servers, try not to overdo it! The IPv6 options are only available on versions of Windows that support IPv6. ExamplesPing a server just once:
Check if a host is reachable:
Check if a host is not reachable:
Test which iSCSI IP on a specific NIC is functioning or if a specific teamed NIC is operating as it should:
Ping a website 5 times:
Monitor a website (example.com) every 15 seconds: @Echo off Echo Logging ping responses, press CTRL-C to stop :start Ping -n 1 example.com | find "TTL=" >>c:\pingtest.txt Echo . Ping -n 16 127.0.0.1>nul goto start PING is named after the sound that a sonar makes. “And now I see with eye serene Related commandsTRACERT - Trace route to a remote host. Copyright © 1999-2026 SS64.com
Some rights reserved |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |