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

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

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

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

  4、Ping網(wǎng)址:

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

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

  1. Ping本機IP

  例如本機IP地址為:169.254.190.92。則執(zhí)行命令Ping 169.254.190.92。如果網(wǎ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ǎng)線斷開再次執(zhí)行此命令,如果顯示正常,則說明本機使用的IP地址可能與另一臺正在使用的機器IP地址重復了。如 果仍然不正常,則表明本機網(wǎng)卡安裝或配置有問題,需繼續(xù)檢查相關網(wǎng)絡配置。

  2. Ping網(wǎng)關IP

  假定網(wǎng)關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遠程IP

  這一命令可以檢測本機能否正常訪問Internet。比如本地電信運營商的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ā)表評論

醫(yī)療健康