, p. I8 M( w8 E; N4 i$ H9 f; d Options: ( G0 k1 ?2 w0 q4 C6 U) P) N
: l( S+ P2 f- o" Q
-t Ping the specified host until stopped.To see statistics and continue - type Control-Break;To stop - type Control-C. ; y8 {0 @( n3 f' e) r * k9 e' b' k1 i! v 不停的ping地方主机,直到你按下Control-C。 , M5 ]4 Z7 F& t/ h5 _
0 Q$ v% b2 C5 J) C1 A
此功能没有什么特别的技巧,不过可以配合其他参数使用,将在下面提到。 " u6 F }7 E& y( P A/ Q; b 8 i" E* C+ A. Q2 C% N/ V
-a Resolve addresses to hostnames. 2 U9 z* x3 _% U: m2 D 8 p! o$ `* b8 d% m u 解析计算机NetBios名。 2 S/ C+ E0 R. c" B7 H( y; | 7 i! }2 j7 B8 Y# L7 }, W, S: [ 示例:C:\>ping -a 192.168.1.21 - O2 @( Q& _" C' N3 V& [# I , t6 [6 I: U1 s( H/ J% O7 J L. P Pinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data: 5 g7 x2 D8 |/ x7 V! i: X8 G , A- o9 T3 {) `# ?4 V Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 : h7 b& x* ~8 N) s. b1 z" T / R+ B0 L+ {! v' I& g
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 ! E6 m) \2 v( I ( B: N' r7 x. W9 A* h Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 , `; W% p8 H s! o. \% M) ~0 h u( V 2 B% w$ |2 u: z* m+ J 8 [ c* Q3 d! a2 y$ o- a! h( X5 c
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 1 r, {1 m5 X' G+ G2 e. v
" U7 K* S( ]4 n
Ping statistics for 192.168.1.21: 9 W% R& t, t7 H: i0 }# | 1 r8 ?2 _( j: j6 K: F+ h0 E! } Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: # A4 O1 \ G5 O2 x( s
- S" T5 c/ P) S: \& V
Minimum = 0ms, Maximum = 0ms, Average = 0ms . W9 _1 T# U- a# e
8 H5 K8 ` _: h, o 从上面就可以知道IP为192.168.1.21的计算机NetBios名为iceblood.yofor.com。 3 m4 e6 S7 l- u 5 v" m6 {2 h# B -n count Number of echo requests to send. ( [' g; w7 g- g