8 Q% w0 p! m" }6 g) Y" O3 q2 q6 O -t Ping the specified host until stopped.To see statistics and continue - type Control-Break;To stop - type Control-C. - C& |# a, y2 B( W4 h
! I1 {) R N; j( F. w 不停的ping地方主机,直到你按下Control-C。 # E! e, ?1 M6 t 9 ^$ r! X8 D* ? C. W v+ ? 此功能没有什么特别的技巧,不过可以配合其他参数使用,将在下面提到。 5 q: O5 B2 b* P, R
4 V1 S7 n. k' c8 L4 N
-a Resolve addresses to hostnames. & x7 k) D- B: w ( o. z. A9 Z: Q! I; \
解析计算机NetBios名。 / S$ u/ D( N5 X% ~. n& r, t% t+ K
& c" W' ?4 y8 f0 L5 F q Pinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data: 7 v5 S2 B2 @' c8 t ) k6 p; i u; o% [* V; B Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 + D0 L( i l! c! Q( F' m * T0 M& R5 k1 { Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 3 _ {: V; U& S1 W; h
) d/ J! r6 e H$ H' z/ W- k4 E Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 % F* r: m' X4 ~/ b' y
6 f( n6 J' m5 a
) ^# Q2 H( u" i& l3 i# E
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 8 q0 k, P* V+ f r8 G0 W! J3 M
2 W! z# X7 `3 H/ F' p9 W- I
Ping statistics for 192.168.1.21: & g* A7 t5 K- n1 E6 U 1 k+ E; @9 {$ q7 E% O Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: . `& ^) A# ?6 c: e- O
( v. a) F" T6 N0 U Minimum = 0ms, Maximum = 0ms, Average = 0ms ' H r7 o( @; i6 t. k" A 9 T R1 D5 L, z* Y) { 从上面就可以知道IP为192.168.1.21的计算机NetBios名为iceblood.yofor.com。 1 F& @' b8 @8 s8 S 0 a. {. y# I! S T; l2 Q2 ^ -n count Number of echo requests to send. " ]! w% z$ K, z 1 P w' T# q9 L% n 发送count指定的Echo数据包数。 ; C- @5 t9 H7 x) X% ~+ K. R % t% c4 N% g- C- p* G
在默认情况下,一般都只发送四个数据包,通过这个命令可以自己定义发送的个数,对衡量网络速度很有帮助,比如我想测试发送50个数据包的返回的平均时间为多少,最快时间为多少,最慢时间为多少就可以通过以下获知: $ H- E8 K( g' Q6 ~+ D