ping コマンド
指定したホストと通信可能かどうかを確認するコマンド。
$ ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.80 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=0.558 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=0.568 ms 64 bytes from 192.168.0.1: icmp_seq=4 ttl=255 time=0.571 ms 64 bytes from 192.168.0.1: icmp_seq=5 ttl=255 time=0.569 ms 64 bytes from 192.168.0.1: icmp_seq=6 ttl=255 time=0.579 ms --- 192.168.0.1 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5001ms rtt min/avg/max/mdev = 0.558/0.775/1.806/0.461 ms
ping 実行中の情報
icmp_seq | 送信するICMPパケットの通し番号 |
---|---|
ttl | パケットの残り生存時間(Time To Live) |
time | 応答時間 |
統計情報(statistics)
packets transmitted | 送信したパケット数 |
---|---|
received | 受信したパケット数 |
packet loss | 喪失したパケットの割合(%) |
time | ping の実行時間(ミリ秒) |
rtt min/avg/max/mdev | 応答時間の「最小」「平均」「最大」「標準偏差」 |