利用Ping命令判定网络故障
#1?牐?1.Ping本机IP
?牐犂绫净鶬P地址为:172.168.200.2。则执行命令Ping 172.168.200.2。如果网卡安装配置没有问题,则应有类似下列显示:
?牐燫eplay from 172.168.200.2?焍ytes=32 time<10ms
?牐燩ing statistics for 172.168.200.2??
?牐燩ackets?烻ent=4 Received=4Lost=0??0% loss?牏?
?牐燗pproximate round trip times in milli-seconds??
?牐燤inimum=0msMaxiumu=1msAverage=0ms
?牐犎绻贛S-DOS方式下执行此命令显示内容为:Request timed out,则表明网卡安装或配置有问题。将网线断开再次执行此命令,如果显示正常,则说明本机使用的IP地址可能与另一台正在使用的机器IP地址重复了。如果仍然不正常,则表明本机网卡安装或配置有问题,需继续检查相关网络配置。
#1?牐?2.Ping网关IP
?牐牸俣ㄍ豂P为:172.168.6.1,则执行命令Ping 172.168.6.1。在MS-DOS方式下执行此命令,如果显示类似以下信息:
?牐燫eply from 172.168.6.1?? bytes=32 time=9ms TTL=255
?牐燩ing statistics for 172.168.6.1??
?牐燩ackets?烻ent=4Received=4Lost=0??0% loss?牏?
?牐燗pproximate round trip times in milli-seconds??
?牐燤inimum=1msMaximum=9msAverage=5ms
?牐犜虮砻骶钟蛲械耐芈酚善髡谡T诵小7粗蛩得魍赜形侍狻?
#1?牐?3.Ping远程IP
?牐犝庖幻羁梢约觳獗净芊裾7梦蔍nternet。比如本地电信运营商的IP地址为:202.102.48.141。在MS-DOS方式下执行命令:Ping 202.102.48.141,如果屏幕显示:
?牐燫eply from 202.102.48.141?? bytes=32 time=33ms TTL=252
?牐燫eply from 202.102.48.141?? bytes=32 time=21ms TTL=252
?牐燫eply from 202.102.48.141?? bytes=32 time=5ms TTL=252
?牐燫eply from 202.102.48.141?? bytes=32 time=6ms TTL=252
?牐燩ing statistics for 202.102.48.141??
?牐燩ackets?烻ent=4Received=4Lost=0??0% loss?牏?
?牐燗pproximate round trip times in milli-seconds??
?牐燤inimum=5msMaximum=33msAverage=16ms
?牐犜虮砻髟诵姓#芄徽=尤牖チ7粗虮砻髦骰募╳indows/host)存在问题。