經常無法存取google

經常無法存取google

每天大約在同一時間(清晨和下午),我的電腦無法存取 google 或任何使用 google 程式碼的網站(包括使用 google adsense、google api、blogspot、youtube、Google本身)。這種情況一直持續到我重新啟動電腦為止。我在同一網絡上有一台筆記型電腦,使用相同的路由器,它可以很好地訪問這些網站,但它是一台舊筆記型電腦,只能透過 elinks 存取網絡,所以我想從這台電腦使用互聯網。

根據 mtr 的輸出,我遇到了 50% 的資料包遺失,在 google 方向上有 16 跳。我最好的猜測是,重新啟動電腦會導致它採用不同的路徑訪問谷歌,繞過給我帶來麻煩的節點。有沒有辦法讓它在不重新啟動的情況下做到這一點?

地鐵輸出:

 Host                                     Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. [my isp]                               0.0%    43   13.8  14.4  13.2  21.1   1.2
 2. [my isp]                               0.0%    43   16.0  14.3  13.1  17.8   0.9
 3. 81.183.2.17                            0.0%    43   15.9  16.2  15.1  22.0   1.1
 4. 81.183.2.16                            0.0%    43   14.8  18.5  13.7  64.1  10.9
 5. 81.183.0.217                           0.0%    43   15.1  25.2  14.9  60.4  15.4
 6. 81.183.2.217                           0.0%    43   14.5  14.5  13.5  15.4   0.5
 7. 209.85.243.121                         0.0%    43   16.8  17.9  16.7  26.9   1.5
 8. 72.14.234.11                           0.0%    43   34.5  35.3  30.0  79.7  10.1
 9. 72.14.235.17                           0.0%    43   40.5  43.2  39.1  75.3   7.9
10. 72.14.235.174                          0.0%    43   40.0  45.0  39.4  78.3   9.1
    72.14.235.172
11. 216.239.43.4                           0.0%    43  112.0 116.5 111.2 135.7   7.1
    216.239.46.218
12. 216.239.46.217                         0.0%    42  147.5 150.9 146.4 188.7   7.4
    216.239.46.215
13. 72.14.232.141                          0.0%    42  155.5 161.4 155.2 203.8  12.5
    209.85.241.22
14. 216.239.46.52                          0.0%    42  165.7 169.2 164.9 200.9   7.3
    216.239.46.54
15. 216.239.46.241                         0.0%    42  245.8 195.5 190.6 245.8   8.2
    216.239.46.213                                                                  
16. 216.239.47.186                        51.2%    42  212.4 208.9 208.0 212.4   0.9
17. 72.14.233.140                          0.0%    42  210.6 479.9 209.0 11415 1728.
    72.14.233.138                                                                   
18. 64.233.174.97                          0.0%    42  213.0 477.7 208.5 11364 1720.
[cuts off here because my screen isn't big enough]

nslookup google.com 的輸出:

Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
Name:   google.com
Address: 173.194.39.99
Name:   google.com
Address: 173.194.39.104
Name:   google.com
Address: 173.194.39.105
Name:   google.com
Address: 173.194.39.101
Name:   google.com
Address: 173.194.39.103
Name:   google.com
Address: 173.194.39.97
Name:   google.com
Address: 173.194.39.96
Name:   google.com
Address: 173.194.39.100
Name:   google.com
Address: 173.194.39.110
Name:   google.com
Address: 173.194.39.102
Name:   google.com
Address: 173.194.39.98

netstat -rn:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0

我不得不重新啟動才能問這個問題,因為 stackexchange 也使用 google api,但我確信今天晚些時候我會再次遇到這個問題,就像我每天都會遇到的那樣。我再次查看了 mtr,沒有發現資料包丟失(正如重新啟動後所預期的那樣),並且它沒有採用通過 216.239.47.* 的路徑,這是給我帶來麻煩的節點。

答案1

我也遇到過這個問題,雖然不像每天那麼頻繁。
其他有類似問題的人被告知禁用 IPv6,它顯然有效:http://ubuntuforums.org/showthread.php?t=1528202
我正在嘗試使用來自以下位置的更多更新說明來做到這一點:http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html
讓我知道這是否適合您或您是否找到了不同的解決方案。

更新:事實證明,問題是由有缺陷的路由器引起的。更換路由器解決了我的問題。

答案2

你可以嘗試清除你的 DNS。您可以將 DNS 設定為 8.8.8.8(Google公共 DNS 伺服器)。您也可以清除您的 arp 快取。

for arptable in `arp | grep "eth1" | cut -d " " -f1`; do arp -d $arptable; done

答案3

我已經遇到同樣的問題很久了,但我仍然無法弄清楚到底為什麼。它不僅發生在我的電腦上,也發生在連接到相同網路的行動裝置上。為什麼會發生這種情況?

相關內容