【网络】Ping 命令 | 您所在的位置:网站首页 › 计算机返回值是什么 › 【网络】Ping 命令 |
目录
命令格式 返回信息 返回结果 命令格式 Linux[root@rdma63 ~]# ping -h Usage: ping [-aAbBdDfhLnOqrRUvV64] [-c count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] [hop1 ...] destination Usage: ping -6 [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc_option] [-N nodeinfo_option] [-p pattern] [-Q tclass] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] destination windowsping IP地址或主机名 [-t] [-a] [-n count] [-l size] 参数含义: -t不停地向目标主机发送数据; -a 以IP地址格式来显示目标主机的网络地址; -n count 指定要Ping多少次,具体次数由count来指定 ; -l size 指定发送到目标主机的数据包的大小。 返回信息Reply from 219.232.236.141: bytes=32 time=52ms TTL=51 Reply from 219.232.236.141: bytes=32 time=57ms TTL=51 Reply from 219.232.236.141: bytes=32 time=41ms TTL=51 Reply from 219.232.236.141: bytes=32 time=39ms TTL=51 Reply from 219.232.236.141: bytes=32 time=30ms TTL=51 Reply from 219.232.236.141: bytes=32 time=34ms TTL=51 Ping statistics for 219.232.236.141: Packets: Sent = 6, Received = 6, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 30ms, Maximum = 57ms, Average = 42ms bytes 表示测试中发送的数据包大小是32个字节, time 表示与对方主机往返一次所用的时间, TTL 指定TTL(Time to Live)值在对方的系统里停留的时间(生存时间)。 Packets: Sent 发送数据包数; Received 接收数据包数; Lost 丢包数 大约往返时间以毫秒(ms)显示: Minimum=最小值 /ms, Maximum=最大值 /ms , Average=平均值 /ms 返回结果二、Ping命令有两种返回结果: 正常结果: 1、“Reply from X.X.X.X: bytes=32 time |
CopyRight 2018-2019 实验室设备网 版权所有 |