当前位置:首页 > 行业 >  > 正文
ping(命令详解)
来源:互联网  时间:2023-07-04 03:22:01
字号:

1、Ping是Windows附带的可执行命令。使用它可以检查网络是否可以连接,用好它可以帮助我们分析判断网络故障。申请格式:Ping IP地址。该命令也可以与许多参数一起使用。

2、具体来说,键入Ping并按enter查看详细说明。

3、下面,本文将教你用ping命令简单测试网速。


(资料图片)

4、命令格式:

5、Ping ip地址-l字节

6、注意:在上面的命令中,L是字母L,而不是数字1。

7、网速等于(发送字节数/返回时间[ms ])K字节。

8、上面计算的结果是字节,而不是我们通常所说的比特(bps)。

9、比如:

10、C:\Documents and Settings\Administratorping 202.101.224.68 -l 1000

11、Pinging 202.101.224.68 with 1000 bytes of data:

12、Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251

13、Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251

14、Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251

15、Reply from 202.101.224.68: bytes=1000 time=38ms TTL=251

16、Ping statistics for 202.101.224.68:

17、Packets: Sent=4, Received=4, Lost=0 (0% loss),

18、Approximate round trip times in milli-seconds:

19、Minimum=38ms, Maximum=38ms, Average=38ms

20、根据上面发送和返回的信息,可以简单的得出,到202.101.224.68的网速是b3hN_M[9I|!s

21、网速等于(发送字节数/返回时间[ms ])K字节。

22、1000/38K字节

23、26.32千字节

24、附件:ping命令帮助描述

25、C:\Documents and Settings\Administratorping /?

26、Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

27、[-r count] [-s count] [[-j host-list] | [-k host-list]]

28、[-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name

29、Options:

30、-t Ping the specified host until stopped.

31、To see statistics and continue - type Control-Break;

32、To stop - type Control-C.

33、-a Resolve addresses to hostnames.

34、-n count Number of echo requests to send.

35、-l size Send buffer size.

36、-f Set Don""""t Fragment flag in packet (IPv4-only).

37、-i TTL Time To Live.

38、-v TOS Type Of Service (IPv4-only).

39、-r count Record route for count hops (IPv4-only).

40、-s count Timestamp for count hops (IPv4-only).

41、-j host-list Loose source route along host-list (IPv4-only).

42、-k host-list Strict source route along host-list (IPv4-only).

43、-w timeout Timeout in milliseconds to wait for each reply.

44、-R Trace round-trip path (IPv6-only).

45、-S srcaddr Source address to use (IPv6-only).

46、-4 Force using IPv4.

47、-6 Force using IPv6.

48、C:\Documents and Settings\Administrator

本文到此结束,希望对大家有所帮助。

标签: