Ping試験実行例

WindowsNT系(2000・XP)の場合は「スタート」「ファイル名を指定して実行」からcmdと入力して「OK」でコマンドプロンプトが開きます。
Windows9x系(95・98・ME)の場合は「スタート」「ファイル名を指定して実行」から
commandと入力して「OK」でMS-DOSプロンプトが開きます。
その他「スタート」「すべてのプログラム」「アクセサリ」の中にもコマンドプロンプトのアイコンが用意されてますので、ダブルクリックして下さい。

下記はWindowsXPの場合の例ですが、9x系でもコマンドは同じです。(但し、いずれの場合も、文字は反転文字で表示されます。)

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>
ping /?(ヘルプの参照方法です。 Windows9x系は一般的にC:\Windows>と表示されると思います。)

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

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 hostnames.
-n count Number of echo requests to send.
-l 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 Timeout in milliseconds to wait for each reply.


C:\Documents and Settings\Administrator>
ping 192.168.0.1(オプションを付けない場合は下記のように32bytesを4回実施します。)

Pinging 192.168.0.1 with 32 bytes of data:

Reply from 192.168.0.1: bytes=32 time=13ms TTL=32
Reply from 192.168.0.1: bytes=32 time=5ms TTL=32
Reply from 192.168.0.1: bytes=32 time=7ms TTL=32
Reply from 192.168.0.1: bytes=32 time=7ms TTL=32

Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 13ms, Average = 8ms

C:\Documents and Settings\Administrator>
ping 192.168.0.1 -n 10(-n 10を付加すると下記のように10回実施します。)

Pinging 192.168.0.1 with 32 bytes of data:

Reply from 192.168.0.1: bytes=32 time=6ms TTL=32
Reply from 192.168.0.1: bytes=32 time=5ms TTL=32
Reply from 192.168.0.1: bytes=32 time=6ms TTL=32
Reply from 192.168.0.1: bytes=32 time=6ms TTL=32
Reply from 192.168.0.1: bytes=32 time=6ms TTL=32
Reply from 192.168.0.1: bytes=32 time=7ms TTL=32
Reply from 192.168.0.1: bytes=32 time=6ms TTL=32
Reply from 192.168.0.1: bytes=32 time=5ms TTL=32
Reply from 192.168.0.1: bytes=32 time=7ms TTL=32
Reply from 192.168.0.1: bytes=32 time=6ms TTL=32

Ping statistics for 192.168.0.1:
Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 7ms, Average = 6ms

C:\Documents and Settings\Administrator>
ping 192.168.0.1 -l 64(-l 64を付加すると下記のように64bytesを4回実施します。)

Pinging 192.168.0.1 with 64 bytes of data:

Reply from 192.168.0.1: bytes=64 time=5ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32

Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 6ms, Average = 5ms

C:\Documents and Settings\Administrator>
ping 192.168.0.1 -l 64 -n 10(-l 64 -n 10を付加すると下記のように64bytesを10回実施します。)

Pinging 192.168.0.1 with 64 bytes of data:

Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=7ms TTL=32
Reply from 192.168.0.1: bytes=64 time=5ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=6ms TTL=32
Reply from 192.168.0.1: bytes=64 time=7ms TTL=32
Reply from 192.168.0.1: bytes=64 time=7ms TTL=32
Reply from 192.168.0.1: bytes=64 time=7ms TTL=32

Ping statistics for 192.168.0.1:
Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 7ms, Average = 6ms

C:\Documents and Settings\Administrator>
ping 192.168.0.3(タイムアウトの場合の表示例が下記です。)

Pinging 192.168.0.3 with 32 bytes of data:

Request timed out.
←この場合は接続を確認して下さい。
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.0.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Documents and Settings\Administrator>
exit(コマンドプロンプトを終了します。)

★ヘルプの記述にも有りますがPingを中断する時等は、キーボードの「Ctrl」+「C」又は「Ctrl」+「Break」(Pause)キーを押して下さい。

★オプションはターゲットの前後、どちらでも大丈夫です。(ping -n 10 192.168.0.1

青文字がタイプ例です。