自从我安装了 12.04(全新安装,不是升级)后,我的互联网连接就一直断线。断线时间从 15 秒到 3 分钟不等,然后连接又恢复了。这种情况发生在我浏览互联网时,或者我唤醒计算机并打开 Firefox 时(有时我有连接,有时没有)。请注意,当互联网连接打开时,速度并不慢(如 speedtest.net 结果所示)。
一开始,我以为是我的 RTL8111/8168B 以太网卡的驱动程序 r8169 出现了问题,因此我从 Realtek 网站下载了 r8168,并按照详细的说明进行操作(将 r8169 列入黑名单,将文件更改为.bsh
...),但仍然存在同样的问题。
因此我切换到无线连接,但仍然遇到同样的问题,即互联网连接随机断开。
有什么想法吗?提前致谢。
输出自lspci -v
:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: f8000000-fa0fffff
Prefetchable memory behind bridge: 00000000d0000000-00000000dbffffff
Capabilities: [88] Subsystem: Dell Device 04a7
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [a0] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [140] Root Complex Link
Kernel driver in use: pcieport
Kernel modules: shpchp
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: f4000000-f60fffff
Prefetchable memory behind bridge: 00000000c0000000-00000000cbffffff
Capabilities: [88] Subsystem: Dell Device 04a7
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [a0] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [140] Root Complex Link
Kernel driver in use: pcieport
Kernel modules: shpchp
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0, IRQ 52
Memory at f6108000 (64-bit, non-prefetchable) [size=16]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: mei
Kernel modules: mei
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
Subsystem: Dell Device 04a7
Flags: bus master, medium devsel, latency 0, IRQ 16
Memory at f6107000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0, IRQ 53
Memory at f6100000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Memory behind bridge: fa400000-fa4fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Dell Device 04a7
Capabilities: [a0] Power Management version 2
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 0000c000-0000cfff
Prefetchable memory behind bridge: 00000000dc100000-00000000dc1fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Dell Device 04a7
Capabilities: [a0] Power Management version 2
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: 0000b000-0000bfff
Memory behind bridge: fa300000-fa3fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Dell Device 04a7
Capabilities: [a0] Power Management version 2
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: fa200000-fa2fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Dell Device 04a7
Capabilities: [a0] Power Management version 2
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
Subsystem: Dell Device 04a7
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f6106000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci_hcd
00:1f.0 ISA bridge: Intel Corporation P67 Express Chipset Family LPC Controller (rev 05)
Subsystem: Dell Device 04a7
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel modules: iTCO_wdt
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 05)
Subsystem: Dell Device 04a7
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 42
I/O ports at f070 [size=8]
I/O ports at f060 [size=4]
I/O ports at f050 [size=8]
I/O ports at f040 [size=4]
I/O ports at f020 [size=32]
Memory at f6105000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Capabilities: [b0] PCI Advanced Features
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
Subsystem: Dell Device 04a7
Flags: medium devsel, IRQ 5
Memory at f6104000 (64-bit, non-prefetchable) [size=256]
I/O ports at f000 [size=32]
Kernel modules: i2c-i801
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0dc5 (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device 085b
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=128M]
Memory at d8000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at fa000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidiafb
01:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
Subsystem: NVIDIA Corporation Device 085b
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at fa080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
02:00.0 VGA compatible controller: NVIDIA Corporation Device 0dc5 (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device 085b
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at f4000000 (32-bit, non-prefetchable) [size=32M]
Memory at c0000000 (64-bit, prefetchable) [size=128M]
Memory at c8000000 (64-bit, prefetchable) [size=64M]
I/O ports at d000 [size=128]
Expansion ROM at f6000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidiafb
02:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
Subsystem: NVIDIA Corporation Device 085b
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at f6080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) (prog-if 30 [XHCI])
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fa400000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [50] Power Management version 3
Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff
Capabilities: [150] Latency Tolerance Reporting
Kernel driver in use: xhci_hcd
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0, IRQ 51
I/O ports at c000 [size=256]
Memory at dc104000 (64-bit, prefetchable) [size=4K]
Memory at dc100000 (64-bit, prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 03-00-00-00-68-4c-e0-00
Kernel driver in use: r8168
Kernel modules: r8168
05:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller (rev 01) (prog-if 10 [OHCI])
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at fa300000 (64-bit, non-prefetchable) [size=2K]
I/O ports at b000 [size=256]
Capabilities: [50] Power Management version 3
Capabilities: [80] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [98] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [130] Device Serial Number 00-10-dc-ff-ff-cf-56-1a
Kernel driver in use: firewire_ohci
Kernel modules: firewire-ohci
06:00.0 SATA controller: JMicron Technology Corp. JMB362 SATA Controller (rev 10) (prog-if 01 [AHCI 1.0])
Subsystem: Dell Device 04a7
Flags: bus master, fast devsel, latency 0, IRQ 19
I/O ports at a040 [size=8]
I/O ports at a030 [size=4]
I/O ports at a020 [size=8]
I/O ports at a010 [size=4]
I/O ports at a000 [size=16]
Memory at fa210000 (32-bit, non-prefetchable) [size=512]
Capabilities: [8c] Power Management version 3
Capabilities: [50] Express Legacy Endpoint, MSI 00
Kernel driver in use: ahci
请注意,我的无线网卡没有显示,我有 Ralink 3390 网卡(由于某种原因显然没有显示在 Ubuntu 上),但我能够连接到无线网络并连接到互联网(当它工作时)。
答案1
尝试从网络管理器中删除连接并创建一个新连接。(如果您使用 LAN 卡连接,请尝试 DSL,或者尝试无线连接)。它可能会起作用。我不是 Ubuntu 专家,我不确定这是否会起作用。我是新用户,我之所以这么说,是因为它对我有用。希望这对您有所帮助。
答案2
造成这种情况的原因有多种,可能的原因如下:
您的磁盘有硬件故障,例如 I/O 错误...
您启用了多个防火墙,最好只启用一个,也许“gufw”是最好的...并且它需要拒绝所有规则以允许 udp 53 和允许 tcp 25,53,80,110,143,843,993,5060,8080
您的操作系统未插入所有模块,请输入:lsmod > list1.txt 然后使用安装 CD 的 ISO 通过“启动盘创建器”创建一个 USB 安装程序(2 GB 的笔就足够了),然后从该 USB 笔启动并选择“试用 Ubuntu”并在那里输入:lsmod > list2.txt 并将此文件复制到与上面相同的位置,然后在文本编辑器中打开它们,查看 list1.txt 中是否缺少模块... 要安装缺少的模块,请先使用 modinfo“模块名称”,在描述后查看它是否需要依赖项,如果不需要,请复制 ko 文件的完整路径并输入 sudo insmod“粘贴路径/file.ko”,插入所有模块后无需重启,一切应该都可以正常工作......
如果您不使用专有驱动程序,则可能会解决问题,因为 CPU 无法实时处理整个系统,并且 CPU 速度和 Bridge 速度不足会导致 Wi-Fi 断开连接,因此请尝试为您的无线网卡安装专有驱动程序或断开系统连接到互联网不需要的每个 USB 设备。如果您不知道如何执行此操作,请转到“软件中心”并输入“其他驱动程序”,如果未安装,请安装它,然后启动它并激活所有可用的驱动程序,因为它会加快速度并使用更少的 CPU...
这肯定是你的情况,你从 USB 磁盘启动,速度非常快,导致系统资源崩溃,不得不关闭一个,而且因为 USB 磁盘是启动盘,所以它选择断开 Wi-Fi!解决方案是将 USB 磁盘连接到速度较慢的集线器,例如,如果连接到 USB3,则使用 USB2 集线器,这会使 USB 磁盘以 USB2 速度工作,如果使用 USB2,则使用 USB1.1 集线器...
这种情况不太可能发生,而且到目前为止,您的浏览器互联网代理已被一些冒充您提供内容“权威”的中介破坏或入侵,但这是一种虚假的权威,只是网络欺凌事件,因为没有任何互联网内容违反互联网当局制定的互联网规则,除此之外,您或任何人都与收到的内容无关,因为每个人都只需输入 URL,服务器决定发送哪些内容,例如,如果两个人同时访问同一个 URL,他们会得到不同的页面内容,因为服务器根据许多参数发送数据,并配置为应用当地国家规则,例如裸体在一个国家可能被视为非法,而在其他国家则不违法。还有版权问题,但这也不可能被侵犯,因为版权不是复制行为,而是冒充作者的行为,也就是说,如果一个人上传受版权保护的材料而不试图拥有版权,则不违反任何国际版权规则。这两项是最常见的虚假“当局”指控,它们使你的代理设置你的浏览器ID具有互联网犯罪行为起源,导致世界上的每个服务器都断开该浏览器的连接,很快就会处理浏览器代理,有时这需要几分钟......
答案3
我的笔记本电脑上有同样的以太网卡。我在 11.10 上遇到了同样的问题,一篇博客解释说 RTL8111/8168B 会与 Linux 内核中的驱动程序出现连接问题。这篇博客是用中文写的: 摘自linux deepin官方博客
建议你可以下载Realtek官方的驱动程序:http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=3&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
或者直接在这里下载:点击这里
请参阅 README 并使用“sudo”进行安装。希望这对您有所帮助。
答案4
由于您在无线和有线连接方面都遇到了问题,所以我怀疑两者的固件是否存在问题。
如果您的连接设置方式存在一些问题,例如您在尝试让 Realtek 固件正常工作时遇到的问题,删除并重新创建它们可能会有所帮助。这里有一个解决方案。如果没有,这里有一些想法。
我建议,在连接正常时,登录路由器,找出路由器的 IP 地址,以及与 ISP 连接的另一端的 ISP 地址(您可以从路由器获取此地址,或致电 ISP 获取)。同时收集 、 和netstat -rn
的ifconfig
输出arp-a
。
由于问题并非特定于有线或无线,因此问题仍然是它特定于什么。回答这个问题的最佳方法是在连接不工作时进行实验。首先,它是面向连接还是面向域名服务?
如果问题是您无法从域名获取 Internet 地址,则问题可能出在域名服务器查找上。要检查这一点,请firefox http://74.125.225.212
在下次遇到问题时尝试。这是 www.google.com 的地址。域名解析问题可能是您的 ISP 的责任。您的路由器可能配置为将域名请求路由到您的 ISP。
如果你无法通过地址访问此网站或其他网站,最好先从你的计算机开始,看看你能能获取。您可以:
首先使用 ping 命令和路由器的地址
ping n.n.n.n
,然后使用上面获得的地址,如 Eliah 所建议的那样。如果可行,则 ping 连接远端的 IP 地址。如果不起作用,请查找连接设备上的指示灯并致电您的 ISP。即使您可以 ping 它但无法 ping 任何 Internet 站点,也该致电您的 ISP 了。致电之前,请确保netstat -rn
当计算机出现故障时,有一条指向路由器的 0.0.0.0 路由。假设您无法通过 ping 访问路由器,请仔细检查您的 IP 地址和网络路由表,
ifconfig
并可netstat -rn
用于比较您的网络在正常工作和不正常工作时的情况。对于没有中间设备的个人网络,您的 IPv4 IP 地址的前 3 位数字和路由器的前 3 位数字应该匹配。如果匹配,则在 ping 路由器后,该命令arp -a
应立即为您提供路由器 IP 地址的答案。如果地址在 4 个地址中的前 3 个地址中匹配,您可以 ping,但 arp 没有填写地址,则您在与路由器的连接方面存在问题。如果这不起作用,请尝试
ping
无线连接器或有线连接器的地址(无论您使用的是哪个)。
如果您无法 ping 路由器,则可能是网络上的另一台设备正在尝试使用您的计算机正在使用的同一 IP 地址。您可以尝试关闭网络上的任何其他设备,看看是否有帮助。使用相同 IP 地址的另一台设备可能意味着您的设备有时可以工作,而另一台设备有时可以工作。关闭一段时间会给另一台设备带来优势。如果两台设备都从路由器获取 IP 地址,这应该不是问题,但配置了静态地址的设备可能会与其他设备重叠。