網際網路經常消失
大約一個月前,我安裝了最新版本的 Linux Mint (14)。
我整天在筆記型電腦上使用 Linux,但每隔 1-2 小時,我的網際網路連接 (Wi-Fi) 就會神奇地消失大約 10 分鐘。
當我嘗試在 Chrome 中打開網站時出現此錯誤:
找不到 google.com 上的伺服器,因為 DNS 查找失敗。DNS 是將網站名稱轉換為其 Internet 地址的網路服務。此錯誤最常見的原因是沒有連接到 Internet 或網路配置錯誤。它也可能是由無響應的 DNS 伺服器或阻止 Google Chrome 訪問網路的防火牆引起的。
我打開終端時也沒有“ping”。
我也在同一台機器上安裝了 Windows,但我在使用 Windows 時從未遇到過這樣的問題。
當網際網路在 Linux 上消失時,它仍然可以通過相同的 Wi-Fi 在我的手機上使用。所以網際網路連接本身工作得很好。
有人有想法嗎?
更新:
又是我。我使用了一段時間的 Windows,但不得不再次更改為 Linux(這次是 Ubuntu)。
上次,我的連接消失了,我嘗試了 jasonwryan 和 Bruce Ediger 建議的命令。這些是我的結果:
$ ifconfig -a eth0 Link encap:Ethernet HWaddr ec:f4:bb:5e:3a:24 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:20 Memory:f7c00000-f7c20000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2953 errors:0 dropped:0 overruns:0 frame:0 TX packets:2953 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:311476 (311.4 KB) TX bytes:311476 (311.4 KB) wlan0 Link encap:Ethernet HWaddr f8:16:54:9d:62:5f inet addr:192.168.178.20 Bcast:192.168.178.255 Mask:255.255.255.0 inet6 addr: fe80::fa16:54ff:fe9d:625f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:218583 errors:0 dropped:0 overruns:0 frame:0 TX packets:120476 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:299458438 (299.4 MB) TX bytes:12939161 (12 $ iw dev wlan0 link Connected to 34:31:c4:67:9b:bc (on wlan0) SSID: FRITZ!Box 7312 freq: 2412 RX: 183533 bytes (212 packets) TX: 15958 bytes (227 packets) signal: -57 dBm tx bitrate: 115.6 MBit/s MCS 13 short GI bss flags: short-preamble short-slot-time dtim period: 1 beacon int: 100 $ dmesg [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.16.0-28-generic (buildd@komainu) (gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6) ) #37-Ubuntu SMP Mon Dec 8 17:15:28 UTC 2014 (Ubuntu 3.16.0-28.37-generic 3.16.7-ckt1) [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-28-generic root=UUID=250ef3c4-35b0-4318-aac8-d6855bf852b1 ro quiet splash vt.handoff=7 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x00000000000913ff] usable [ 0.000000] BIOS-e820: [mem 0x0000000000091400-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000cefe4fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000cefe5000-0x00000000cefebfff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x00000000cefec000-0x00000000cf9e1fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000cf9e2000-0x00000000cfeaafff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000cfeab000-0x00000000d7db3fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000d7db4000-0x00000000d7ffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000d8000000-0x00000000d8758fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000d8759000-0x00000000d87fffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000d8800000-0x00000000d8f99fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000d8f9a000-0x00000000d8ffffff] ACPI data [ 0.000000] BIOS-e820: [mem 0x00000000d9000000-0x00000000da71bfff] usable [ 0.000000] BIOS-e820: [mem 0x00000000da71c000-0x00000000da7fffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x00000000da800000-0x00000000dbcf6fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000dbcf7000-0x00000000dbffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000dd000000-0x00000000df1fffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fed00000-0x00000000fed03fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000021edfffff] usable [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] SMBIOS 2.7 present. [ 0.000000] DMI: Dell Inc. Latitude E5540/0H56PP, BIOS A06 05/01/2014 [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] AGP: No AGP bridge found [ 0.000000] e820: last_pfn = 0x21ee00 max_arch_pfn = 0x400000000 [ 0.000000] MTRR default type: uncachable [ 0.000000] MTRR fixed ranges enabled: [ 0.000000] 00000-9FFFF write-back [ 0.000000] A0000-BFFFF uncachable [ 0.000000] C0000-DBFFF write-protect [ 0.000000] DC000-E7FFF uncachable [ 0.000000] E8000-FFFFF write-protect [ 0.000000] MTRR variable ranges enabled: [ 0.000000] 0 base 0000000000 mask 7E00000000 write-back //TOO LONG
的內容
/etc/resolv.conf
是:# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search fritz.box
既沒有
journalctl | tail
也沒有/var/log/messages
被發現。
發生這種情況時(在沒有 Internet 的 10 分鐘內),以 root 使用者身份或使用以下命令在終端視窗中執行一些命令
sudo
:
ifconfig -a
- 尋找有關的輸出wlan0
iw dev wlan0 link
dmesg
journalctl | tail
或者如果journalctl
不存在,請查看/var/log/messages
該輸出中的某些內容應該為您提供更多繼續。