什么是ping ping命令使用方法詳解(3)

作者: ndbdp  2014-08-27 11:13 [查查吧]:uabf.cn

  3、Ping同網(wǎng)段計(jì)算機(jī)的IP:

  Ping一臺(tái)同網(wǎng)段計(jì)算機(jī)的IP,不通則表明網(wǎng)絡(luò)線路出現(xiàn)故障;若網(wǎng)絡(luò)中還包含有路由器,則應(yīng)先Ping路由器在本網(wǎng)段端口的IP,不通則此段線路有問(wèn)題;通則再PING路由器在目標(biāo)計(jì)算機(jī)所在網(wǎng)段的端口IP,不通則是路由出現(xiàn)故障;通則再Ping目的機(jī)IP地址。

  4、Ping網(wǎng)址:

  若要檢測(cè)一個(gè)帶DNS服務(wù)的網(wǎng)絡(luò),在上一步Ping通了目標(biāo)計(jì)算機(jī)的IP地址后,仍無(wú)法連接到該機(jī),則可PING該機(jī)的網(wǎng)絡(luò)名,比如Ping www.sina.com.cn,正常情況下會(huì)出現(xiàn)該網(wǎng)址所指向的IP,這表明本機(jī)的DNS設(shè)置正確而且DNS服務(wù)器工作正常,反之就可能是其中之一出現(xiàn) 了故障;同樣也可通過(guò)Ping計(jì)算機(jī)名檢測(cè)WINS解析的故障(WINS是將計(jì)算機(jī)名解析到IP地址的服務(wù))。

  利用Ping命令判定網(wǎng)絡(luò)故障

  1. Ping本機(jī)IP

  例如本機(jī)IP地址為:169.254.190.92。則執(zhí)行命令Ping 169.254.190.92。如果網(wǎng)卡安裝配置沒(méi)有問(wèn)題,則應(yīng)有類似下列顯示:

  C:\Documents and Settings\Administrator>ping 169.254.190.92

  Pinging 169.254.190.92 with 32 bytes of data:

  Reply from 169.254.190.92: bytes=32 time<1ms TTL=128

  Reply from 169.254.190.92: bytes=32 time<1ms TTL=128

  Reply from 169.254.190.92: bytes=32 time<1ms TTL=128

  Reply from 169.254.190.92: bytes=32 time<1ms TTL=128

  Ping statistics for 169.254.190.92:

  Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

  Approximate round trip times in milli-seconds:

  Minimum = 0ms, Maximum = 0ms, Average = 0ms

  如果在MS-DOS方式下執(zhí)行此命令顯示內(nèi)容為:Request timed out,則表明網(wǎng)卡安裝或配置有問(wèn)題。將網(wǎng)線斷開再次執(zhí)行此命令,如果顯示正常,則說(shuō)明本機(jī)使用的IP地址可能與另一臺(tái)正在使用的機(jī)器IP地址重復(fù)了。如 果仍然不正常,則表明本機(jī)網(wǎng)卡安裝或配置有問(wèn)題,需繼續(xù)檢查相關(guān)網(wǎng)絡(luò)配置。

  2. Ping網(wǎng)關(guān)IP

  假定網(wǎng)關(guān)IP為:59.52.177.115,則執(zhí)行命令Ping 59.52.177.115。在MS-DOS方式下執(zhí)行此命令,如果顯示類似以下信息:

  C:\Documents and Settings\Administrator>ping 59.52.177.115

  Pinging 59.52.177.115 with 32 bytes of data:

  Reply from 59.52.177.115: bytes=32 time<1ms TTL=128

  Reply from 59.52.177.115: bytes=32 time<1ms TTL=128

  Reply from 59.52.177.115: bytes=32 time<1ms TTL=128

  Reply from 59.52.177.115: bytes=32 time<1ms TTL=128

  Ping statistics for 59.52.177.115:

  Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

  Approximate round trip times in milli-seconds:

  Minimum = 0ms, Maximum = 0ms, Average = 0ms

  3. Ping遠(yuǎn)程IP

  這一命令可以檢測(cè)本機(jī)能否正常訪問(wèn)Internet。比如本地電信運(yùn)營(yíng)商的IP地址為:202.101.224.69。在MS-DOS方式下執(zhí)行命令:Ping 202.101.224.69,如果屏幕顯示:

  C:\Documents and Settings\Administrator>ping 202.101.224.69

  Pinging 202.101.224.69 with 32 bytes of data:

  Reply from 202.101.224.69: bytes=32 time=2ms TTL=250 ?

發(fā)表評(píng)論

醫(yī)療健康