網路問題判斷

出自KMU Wiki

(修訂版本間差異)
跳轉到: 導航, 搜索
在2010年10月11日 (一) 18:19所做的修訂版本 (編輯)
Cch (對話 | 貢獻)

←上一個
當前修訂版本 (2016年12月20日 (二) 09:58) (編輯) (撤銷)
Ykk (對話 | 貢獻)

 
第124行: 第124行:
-[[Category:資訊處]]+[[Category:資訊處]] [[Category:圖書資訊處]] [[Category:資訊服務]]

當前修訂版本

當您在使用 Windows 時連不上某個網頁時,可按以下步驟做初步的判斷︰

首先開啟命令提示字元 (請用滑鼠左鍵點Windows桌面左下角開始 -> 執行搜尋 -> 輸入cmd -> 點確定或按 Enter)

目錄

[編輯] ipconfig(檢視IP Address)

命令提示字元視窗中輸入︰

ipconfig

看看是否有 IP Address 的資料,執行結果可能像是這個樣子︰

C:\>ipconfig

Windows IP Configuration

Ethernet adapter 區域連線:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 163.15.159.78
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 163.15.159.254

如果 IP Address 顯示為 0.0.0.0 或 169.x.x.x 則無法上網。

[編輯] ping (測試網站是否活著)

命令提示字元視窗中輸入︰

ping 目的地網站名稱或IP Address

例如測試 Google 搜尋網站是否活著︰

C:\>ping www.google.com.tw

Pinging www.l.google.com [74.125.71.99] with 32 bytes of data:

Reply from 74.125.71.99: bytes=32 time=66ms TTL=51
Reply from 74.125.71.99: bytes=32 time=65ms TTL=51
Reply from 74.125.71.99: bytes=32 time=65ms TTL=51
Reply from 74.125.71.99: bytes=32 time=64ms TTL=51

Ping statistics for 74.125.71.99:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 64ms, Maximum = 66ms, Average = 65ms

以上的結果表示該網站活著,如果出現Request timed out. 就表示該網站和我們電腦間的網路連線無法建立, 但不能說一定是對方網站有問題。

[編輯] tracert(追蹤網路路徑)

命令提示字元視窗中輸入︰

tracert 目的地網站名稱或IP Address

例如追蹤由自己的電腦到 Google 搜尋網站中間經過哪些網路節點︰

C:\>tracert www.google.com.tw

Tracing route to www.l.google.com [74.125.71.99]
over a maximum of 30 hops:

  1    <1 ms     5 ms    <1 ms  gw.cluster.kmu.edu.tw [163.15.159.254]
  2    <1 ms     2 ms    <1 ms  c252.cc.kmu.edu.tw [163.15.154.252]
  3     1 ms     1 ms    <1 ms  140.127.160.65
  4    15 ms    13 ms    13 ms  bb-MOE-TWAREN.TANet.edu.tw [192.83.196.111]
  5    12 ms    14 ms    13 ms  202.169.174.58
  6    31 ms    20 ms    28 ms  202.169.174.234
  7    33 ms    62 ms     *     72.14.196.229
  8    12 ms    12 ms    11 ms  209.85.243.26
  9    67 ms    62 ms    61 ms  209.85.250.123
 10    67 ms    66 ms    65 ms  216.239.43.19
 11    66 ms    68 ms    69 ms  216.239.48.234
 12    66 ms    67 ms    65 ms  hx-in-f99.1e100.net [74.125.71.99]

以上表示我們的電腦和目的地網站可以順利建立網站連線。

[編輯] telnet(測試網頁服務 HTTP)

命令提示字元視窗中輸入︰

telnet 目的地網站名稱或IP Address 80
C:\> telnet www.google.com.tw 80

接下來命令提示字元視窗的畫面會清空,請輸入

GET / HTTP/1.0 然後按兩次 Enter (請注意,輸入的這些字元並不會出現在畫面上)

如果該網站的網頁服務正常,應該會有以下的回應︰


HTTP/1.0 302 Found
Location: http://www.google.com.tw/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=64dd46bb45edc53f:TM=1285641901:LM=1285641901:S=_pVo6-VbRja_Y
UOy; expires=Thu, 27-Sep-2012 02:45:01 GMT; path=/; domain=.google.com
Set-Cookie: NID=39=vXNhR76aP1Qk4kOmTiyCf4w2fTUneQzERbwRwmM8ggBHVq4rSiBeLDThUV9tM
OV-xZmXquYTKMEoFl5DejGgWmblBdO0qFgAX439c_t7TUDqWcrouxejUDVllLMshhR3; expires=Wed
, 30-Mar-2011 02:45:01 GMT; path=/; domain=.google.com; HttpOnly
Date: Tue, 28 Sep 2010 02:45:01 GMT
Server: gws
Content-Length: 222
X-XSS-Protection: 1; mode=block

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.com.tw/">here</A>.
</BODY></HTML>

遺失與主機的連線。