|
: g) _7 _! P$ Z1 U' [Ping 是Windows系列自带的一个可执行命令。利用它可以检查网络是否能够连通,用好它可以很好地帮助我们分析判定网络故障。应用格式:Ping IP地址。该命令还可以加许多参数使用,具体是键入Ping按回车即可看到详细说明。" \6 c* Q$ \5 M6 |& V: U E. l7 A
#1??1.Ping本机IP
' `, |+ V7 Y" U ^; C* O ??例如本机IP地址为:172.168.200.2。则执行命令Ping 172.168.200.2。如果网卡安装配置没有问题,则应有类似下列显示:
+ s3 d# r& Y: J7 R ??Replay from 172.168.200.2?bytes=32 time<10ms' K7 u; H3 R* X n: T& [% W" `2 l
??Ping statistics for 172.168.200.2?
8 E/ x7 f1 k E* W; a6 ]$ D$ ^ ??Packets?Sent=4? Received=4?Lost=0?0% loss??
& j9 A6 `9 n% M8 T+ E& H8 r ??Approximate round trip times in milli-seconds?3 B: g8 x* ]7 f0 m: ]
??Minimum=0ms?Maxiumu=1ms?Average=0ms
' N( m Z- k( F r( W ??如果在MS-DOS方式下执行此命令显示内容为:Request timed out,则表明网卡安装或配置有问题。将网线断开再次执行此命令,如果显示正常,则说明本机使用的IP地址可能与另一台正在使用的机器IP地址重复了。如果仍然不正常,则表明本机网卡安装或配置有问题,需继续检查相关网络配置。, F$ }/ v+ L3 ^5 s
#1??2.Ping网关IP+ g& ^+ Z; ~8 o3 M% y
??假定网关IP为:172.168.6.1,则执行命令Ping 172.168.6.1。在MS-DOS方式下执行此命令,如果显示类似以下信息:
4 J3 T6 \/ P( W& n1 w( l! Q) [' y ??Reply from 172.168.6.1? bytes=32 time=9ms TTL=255
( v" X0 K; M' C' l6 |+ b ??Ping statistics for 172.168.6.1?
1 ~- c: K6 q* q; G ??Packets?Sent=4?Received=4?Lost=0?0% loss??
& m; r* R" ]3 k# t5 N' I5 \' W2 o8 O ??Approximate round trip times in milli-seconds?
( r# Z, D5 q L/ p ??Minimum=1ms?Maximum=9ms?Average=5ms
! z* q' B8 q$ ]0 b5 e9 {: y ??则表明局域网中的网关路由器正在正常运行。反之,则说明网关有问题。& v4 }2 a$ i! ~' p+ U+ w
#1??3.Ping远程IP. z! M6 M: z/ J5 J, N, l
??这一命令可以检测本机能否正常访问Internet。比如本地电信运营商的IP地址为:202.102.48.141。在MS-DOS方式下执行命令:Ping 202.102.48.141,如果屏幕显示:
i0 ?/ d. b* y& G$ `% b. ]* ` ??Reply from 202.102.48.141? bytes=32 time=33ms TTL=252
8 K3 u3 z+ l$ F C% a4 S. P ??Reply from 202.102.48.141? bytes=32 time=21ms TTL=252" l' {$ _+ q1 _7 F d* z/ x9 c7 c
??Reply from 202.102.48.141? bytes=32 time=5ms TTL=252! n$ M0 t6 w$ K" x- |/ p5 S
??Reply from 202.102.48.141? bytes=32 time=6ms TTL=252
1 ~% ~8 V2 p6 k6 S ??Ping statistics for 202.102.48.141?; u8 H( M1 h8 _7 ~0 g3 h+ \$ T( N1 f4 [0 _
??Packets?Sent=4?Received=4?Lost=0?0% loss??
4 H4 g( a9 ^4 @! {0 A5 s; g+ z U4 ` ??Approximate round trip times in milli-seconds?2 |; G- B& A# Q2 H
??Minimum=5ms?Maximum=33ms?Average=16ms6 c$ M& j' G" r" n& L( u' c
??则表明运行正常,能够正常接入互联网。反之,则表明主机文件(windows/host)存在问题。 |
|