2012年職稱計算機輔導Internet應用-利用PING來檢查網絡狀態的方法


1.Ping本機IP
例如本機IP地址為:172.168.200.2。則執行命令Ping 172.168.200.2。如果網卡安裝配置沒有問題,則應有類似下列顯示:
Replay from 172.168.200.2 bytes=32 time<10ms
Ping statistics for 172.168.200.2
Packets Sent=4 Received=4 Lost=0 0% loss
Approximate round trip times in milli-seconds
Minimum=0ms Maxiumu=1ms Average=0ms
如果在MS-DOS方式下執行此命令顯示內容為:Request timed out,則表明網卡安裝或配置有問題。將網線斷開再次執行此命令,如果顯示正常,則說明本機使用的IP地址可能與另一臺正在使用的機器IP地址重復了。如果仍然不正常,則表明本機網卡安裝或配置有問題,需繼續檢查相關網絡配置。
2.Ping網關IP
假定網關IP為:172.168.6.1,則執行命令Ping 172.168.6.1。在MS-DOS方式下執行此命令,如果顯示類似以下信息:
Reply from 172.168.6.1 bytes=32 time=9ms TTL=255
Ping statistics for 172.168.6.1
Packets Sent=4 Received=4 Lost=0
Approximate round trip times in milli-seconds
Minimum=1ms Maximum=9ms Average=5ms
則表明局域網中的網關路由器正在正常運行。反之,則說明網關有問題。
3.Ping遠程IP
這一命令可以檢測本機能否正常訪問Internet。比如本地電信運營商的IP地址為:202.102.48.141。在MS-DOS方式下執行命令:Ping 202.102.48.141,如果屏幕顯示:
Reply from 202.102.48.141 bytes=32 time=33ms TTL=252
Reply from 202.102.48.141 bytes=32 time=21ms TTL=252
Reply from 202.102.48.141 bytes=32 time=5ms TTL=252
Reply from 202.102.48.141 bytes=32 time=6ms TTL=252
Ping statistics for 202.102.48.141
Packets Sent=4 Received=4 Lost=0 0% loss
Approximate round trip times in milli-seconds
Minimum=5ms Maximum=33ms Average=16ms
則表明運行正常,能夠正常接入互聯網。反之,則表明主機文件(windows/host)存在問題。
ping命令的用法
驗證與遠程計算機的連接。該命令只有在安裝了 TCP/IP 協議后才可以使用。
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
參數
-t
Ping 指定的計算機直到中斷。
-a
將地址解析為計算機名。
-n count
發送 count 指定的 ECHO 數據包數。默認值為 4。
-l length
發送包含由 length 指定的數據量的 ECHO 數據包。默認為 32 字節;最大值是 65,527。
-f
在數據包中發送“不要分段”標志。數據包就不會被路由上的網關分段。
-i ttl
將“生存時間”字段設置為 ttl 指定的值。
-v tos
將“服務類型”字段設置為 tos 指定的值。
-r count
在“記錄路由”字段中記錄傳出和返回數據包的路由。count 可以指定最少 1 臺,最多 9 臺計算機。
-s count
指定 count 指定的躍點數的時間戳。
-j computer-list
利用 computer-list 指定的計算機列表路由數據包。連續計算機可以被中間網關分隔(路由稀疏源)IP 允許的最大數量為 9。
-k computer-list
利用 computer-list 指定的計算機列表路由數據包。連續計算機不能被中間網關分隔(路由嚴格源)IP 允許的最大數量為 9。
-w timeout
指定超時間隔,單位為毫秒。
destination-list
指定要 ping 的遠程計算機
最新資訊
- 2019年職稱計算機考試《Powerpoint》考點插入FLASH動畫2019-03-15
- 2019年職稱計算機考試《Powerpoint》考點主控文檔和子文檔2019-03-15
- 2019年職稱計算機考試《Powerpoint》考點剪貼畫顏色更換2019-03-15
- 2019年職稱計算機考試《Internet應用》考點上傳與下載文件2019-03-13
- 2019年職稱計算機考試《Internet應用》考點MSN即時通訊2019-03-13
- 2019年職稱計算機考試《Excel2003》考點增加或刪除數據2019-03-08
- 2019年職稱計算機考試《Excel2003》考點編輯同組工作表2019-03-08
- 2019年職稱計算機考試《Excel2003》考點統計分數段2019-03-08
- 2019年職稱計算機《WindowsXP》考點:復制段落格式2019-03-07
- 2019年職稱計算機《WindowsXP》考點:給長文檔添加書簽2019-03-07