DOS コマンドを目的別に調べることができる辞典

ホーム > DOS コマンド逆引き辞典 > IP 接続チェック > IP 接続を確認する

DOS コマンド逆引き辞典

:: reverse dictionary ::

IP 接続チェック

IP 接続を確認する

IP 接続を確認するには、ping コマンドに IP アドレスを指定して実行します。

C:\>ping 10.1.111.222

Pinging 10.1.111.222 with 32 bytes of data:

Reply from 10.1.111.222: bytes=32 time=21ms TTL=50
Reply from 10.1.111.222: bytes=32 time=21ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50

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

▼ コマンド

ping 宛先

ping コマンドに宛先を指定して実行すると、「ICMP エコー要求パケット」を宛先に送信して IP 接続ができるかどうかを確認します。

宛先には IP アドレスのほかに、ホスト名(ドメイン名やコンピュータ名)も指定できます。

C:\>ping sample.always-pg.com

Pinging sample.always-pg.com [10.1.111.222] with 32 bytes of data:

Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=21ms TTL=50
Reply from 10.1.111.222: bytes=32 time=21ms TTL=50

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

C:\>ping pc02

Pinging pc02 [192.168.1.81] with 32 bytes of data:

Reply from 192.168.1.81: bytes=32 time<1ms TTL=255
Reply from 192.168.1.81: bytes=32 time<1ms TTL=255
Reply from 192.168.1.81: bytes=32 time<1ms TTL=255
Reply from 192.168.1.81: bytes=32 time<1ms TTL=255

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

指定したホスト名が見つからない場合は、次のようなメッセージを表示します。

C:\>ping always-pg.biz
Ping request could not find host always-pg.biz. Please check the name and try
again.

エコー要求パケットは4回送信されます。

接続に成功した場合は、エコー要求パケットに対応する「エコー応答パケット」を受信します。

Reply from 10.1.111.222: bytes=32 time=20ms TTL=50

受信の内容は、次のとおりです。

項目 内容
bytes 受信したエコー応答パケットのサイズ(バイト数)
time 要求(送信)してから応答(受信)するまでにかかった時間(ミリ秒)
1ms 未満の場合は「 <1ms 」を表示
TTL エコー応答パケットの生存時間
Time To Live」の略

最後に結果(統計)を表示します。

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

結果の内容は、次のとおりです。

項目 内容
Sent 送信したエコー要求パケットの総数
Received 受信したエコー応答パケットの総数
Lost 受信できなかったエコー応答パケットの総数
カッコ内の値は損失率
Minimum 送受信(往復)にかかった最短時間(ミリ秒)
Maximum 送受信(往復)にかかった最長時間(ミリ秒)
Average 送受信(往復)にかかった時間の平均(ミリ秒)

なお、宛先が応答する前に接続がタイムアウトした場合は、「Request timed out」のメッセージを表示します。(宛先が存在しない場合も同様)

C:\>ping 192.168.1.80

Pinging 192.168.1.80 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

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

また、宛先に到達できない(途中のルータで宛先へのルートがない)場合は、「Destination host unreachable」のメッセージを表示します。

C:\>ping 192.168.2.80

Pinging 192.168.2.80 with 32 bytes of data:

Reply from 192.168.2.1: Destination host unreachable.
Reply from 192.168.2.1: Destination host unreachable.
Reply from 192.168.2.1: Destination host unreachable.
Reply from 192.168.2.1: Destination host unreachable.

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

このメッセージは、デフォルトゲートウェイが設定されていない(どのネットワークにも接続していない)場合も表示されます。

C:\>ping 10.1.111.222

Pinging 10.1.111.222 with 32 bytes of data:

Destination host unreachable.
Destination host unreachable.
Destination host unreachable.
Destination host unreachable.

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

注目キーワード ベスト5

  1. セキュリティ
  2. ホスティング
  3. レンタルサーバ
  4. ファイル復旧
  5. ハードディスク修復

IP 接続チェック - ip connection check -


ホーム > DOS コマンド逆引き辞典 > IP 接続チェック > IP 接続を確認する

Copyright (C) 2005-2007 Noto Watabe. All rights reserved.
e-mail:wmh@always-pg.com