对于Windows下ping命令相信大家已经再熟悉不过了,但是能把ping的功能发挥到最大的人却并不是很多,当然我也并不是说我可以让ping发挥最大的功能,我也只不过经常用ping这个工具,也总结了一些小经验,现在和大家分享一下。 - V" J5 E. `; y* b . ^% @. h2 J# Y! |4 e# }# p8 f 现在我就参照ping命令的帮助说明来给大家说说我使用ping时会用到的技巧,ping只有在安装了TCP/IP协议以后才可以使用: . ~# ?+ ~4 h$ e% T3 E6 x
7 b0 w `# d- j5 I
ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [[-j computer-list] [-k computer-list]] [-w timeout] destination-list 1 U/ [# }- ^% E0 @
- A1 `) f* {! N Options: 4 ?/ k% } V, c1 ~( o' M; Y 2 t# |1 Z. G! w2 v, E$ b1 j! @& y -t Ping the specified host until stopped.To see statistics and continue - type Control-Break;To stop - type Control-C. # n. q+ U. t+ m) E 7 W! d H5 K2 Z p2 \% N% ^( B 不停的ping地方主机,直到你按下Control-C。 / `" p1 u* s2 f: v 3 }% v( V V; g" I* i, X 此功能没有什么特别的技巧,不过可以配合其他参数使用,将在下面提到。 ( ?" C( Y" H- }* }, I: j
* T3 U( Y4 ?# I, a1 f4 g* I
-a Resolve addresses to hostnames. & J$ J+ C X, z
. s9 i5 V4 X3 ? T6 ?! M 解析计算机NetBios名。 1 J0 s4 f8 Z5 g# n5 [9 {
# E0 q6 n, g- @: _! j' ~4 B; t
示例:C:\>ping -a 192.168.1.21 3 x/ X0 L, f/ S; J) Q) {( b4 L + ~! T) ~" Z% [7 c' s* y, \4 D Pinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data: & X3 @+ N% C' E1 r5 P 6 o$ E2 Z2 l# @) t: w$ @* A* z Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 3 g" V* b7 O3 p - _% k% `4 E) w/ B7 |9 Q P Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 ( n) B$ Z+ S' g0 i 8 e5 N& i, t% e5 A) ^" c Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 5 o0 ?: S% l8 R4 E' i1 k
/ |4 E# d6 Z0 D( B4 T. o8 {! C 7 a( Z/ U+ U `5 r' Z4 T
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254 x. H0 r1 T: K. {# g" }
& w4 b3 Z' b& g Ping statistics for 192.168.1.21: : t% L4 o8 x* W: S8 d 3 B: h6 i4 x( i
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: 6 W6 i3 h/ I$ s; A m% O