求助,网络超慢,过会会断开连接 [已解决][rtl8192cu]

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
csdcn
帖子: 6
注册时间: 2016-03-02 9:29
系统: win+linux

求助,网络超慢,过会会断开连接 [已解决][rtl8192cu]

#1

帖子 csdcn »

用的ubuntu15.04
按网上的方法:http://jingyan.baidu.com/article/fcb5af ... a7189.html
处理之后没有。
输入lspci -v的结果:
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Subsystem: Lenovo Device 3098
Flags: bus master, fast devsel, latency 0, IRQ 28
I/O ports at d000
Memory at f7104000 (64-bit, non-prefetchable)
Memory at f7100000 (64-bit, prefetchable)
Capabilities: <access denied>
Kernel driver in use: r8168
上次由 csdcn 在 2016-03-07 9:03,总共编辑 1 次。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助,网络超慢,过会会断开连接

#2

帖子 vickycq »

csdcn 写了:网络超慢
有线网还是无线网超慢?
终端执行下面指令将结果全部复制贴上来

代码: 全选

uname -a
cat /etc/os-release
lspci -knn | grep -iA2 net
sudo lshw -C net
sudo ifconfig -a
sudo iwconfig
sudo route -nv
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
csdcn
帖子: 6
注册时间: 2016-03-02 9:29
系统: win+linux

Re: 求助,网络超慢,过会会断开连接

#3

帖子 csdcn »

用的是无线网卡,有线网没试过
结果:
gj@gj-ThinkCentre-E73:~$ uname -a
Linux gj-ThinkCentre-E73 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
gj@gj-ThinkCentre-E73:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="15.04 (Vivid Vervet)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.04"
VERSION_ID="15.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
gj@gj-ThinkCentre-E73:~$ lspci -knn | grep -iA2 net
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
Subsystem: Lenovo Device [17aa:3098]
Kernel driver in use: r8168
gj@gj-ThinkCentre-E73:~$ sudo lshw -C net
[sudo] password for gj:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 0c
serial: d8:cb:8a:27:97:1a
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.041.01-NAPI duplex=half latency=0 link=no multicast=yes port=twisted pair speed=10Mbit/s
resources: irq:28 ioport:d000(size=256) memory:f7104000-f7104fff memory:f7100000-f7103fff
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:2
logical name: wlan0
serial: 08:57:00:8c:14:44
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu driverversion=3.19.0-15-generic firmware=N/A ip=192.168.31.220 link=yes multicast=yes wireless=IEEE 802.11bgn
gj@gj-ThinkCentre-E73:~$ sudo ifconfig -a
eth0 Link encap:以太网 硬件地址 d8:cb:8a:27:97:1a
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
中断:28 基本地址:0x8000

lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:292 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:292 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:31508 (31.5 KB) 发送字节:31508 (31.5 KB)

wlan0 Link encap:以太网 硬件地址 08:57:00:8c:14:44
inet 地址:192.168.31.220 广播:192.168.31.255 掩码:255.255.255.0
inet6 地址: fe80::a57:ff:fe8c:1444/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:1249 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:122 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:166602 (166.6 KB) 发送字节:17057 (17.0 KB)

gj@gj-ThinkCentre-E73:~$ sudo iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Lab233"
Mode:Managed Frequency:2.437 GHz Access Point: 64:09:80:59:C2:F4
Bit Rate=72.2 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=54/70 Signal level=-56 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:6 Missed beacon:0

lo no wireless extensions.

gj@gj-ThinkCentre-E73:~$ sudo route -nv
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
0.0.0.0 192.168.31.1 0.0.0.0 UG 1024 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
192.168.31.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
gj@gj-ThinkCentre-E73:~$
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助,网络超慢,过会会断开连接

#4

帖子 vickycq »

csdcn 写了:按网上的方法:http://jingyan.baidu.com/article/fcb5af ... a7189.html
这个折腾的是有线网卡 RTL8111/8168/8411

无线网卡是 USB 的 RTL8192CU
安装 4.3 以上内核可使用新驱动 rtl8xxxu
可从这里 http://kernel.ubuntu.com/~kernel-ppa/mainline/ 下载一个 4.4 内核安装
csdcn 写了:firmware=N/A
缺少固件,安装 linux-firmware 包含 rtl8192cufw*.bin
csdcn 写了:driver=rtl8192cu
网络超慢
内核中自带的 rtl819x 驱动质量不佳,而这里的 rtlwifi-new 由网友 lwfinger 维护,质量有一定的提升。
项目地址 https://github.com/lwfinger/rtlwifi_new/

可通过 PPA 安装

代码: 全选

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms
另外还有一些网友维护的 rtl8192cu 驱动,如 https://github.com/pvaret/rtl8192cu-fixes
也可尝试

参考
viewtopic.php?f=116&t=475102
viewtopic.php?f=116&t=474243
viewtopic.php?f=116&t=474566
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
csdcn
帖子: 6
注册时间: 2016-03-02 9:29
系统: win+linux

Re: 求助,网络超慢,过会会断开连接

#5

帖子 csdcn »

非常感谢大神,我刚接触linux,还有很多不懂,
1.链接中内核4.4有好几个版本,选哪个好啊
升级内核网上找的方法 http://www.linuxidc.com/Linux/2014-05/101240.htm
http://os.51cto.com/art/201508/487580.htm
靠谱吗?
2.firmware=N/A,缺少的是什么固件,该怎么安装,有没有链接让我参考下。
是不是装了这个固件后,就算不升级内核也可以了?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助,网络超慢,过会会断开连接

#6

帖子 vickycq »

csdcn 写了:升级内核网上找的方法 http://www.linuxidc.com/Linux/2014-05/101240.htm
http://os.51cto.com/art/201508/487580.htm
靠谱吗?
第二个靠谱

可以先试试 4.4 内核中新添加的 rtl8xxxu 驱动
1.

代码: 全选

cd
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.4-wily/linux-image-4.4.4-040404-generic_4.4.4-040404.201603031931_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.4-wily/linux-headers-4.4.4-040404-generic_4.4.4-040404.201603031931_amd64.deb
sudo dpkg -i linux-image-4.4*.deb linux-headers-4.4*.deb
sudo update-grub
2.
创建 /etc/modprobe.d/blacklist-rtl819x.conf 添加:

代码: 全选

blacklist rtl8192cu
3.
编辑 /etc/modules 添加一行:

代码: 全选

rtl8xxxu
4. 重新启动计算机
5. 用 sudo lshw -C net 确认驱动加载情况,应该有 driver=rtl8xxxu 字样。也可用 lsmod | grep rtl8 确认 rtl8xxxu 被加载

如果加载失败 或 使用体验不佳,再发帖

===========================================

如果 rtl8xxxu 使用体验不佳,只好用 rtlwifi-new
1. 卸载新内核,移除黑名单

代码: 全选

sudo dpkg -r linux-image-4.4[TAB补全] linux-headers-4.4[TAB补全]
sudo rm /etc/modprobe.d/blacklist-rtl819x.conf
2. 将 /etc/modules 中 rtl8xxxu 字样删除
3. 重新启动计算机 自动进入旧内核
4. 安装 rtlwifi-new

代码: 全选

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms
5. 重新启动计算机
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
csdcn
帖子: 6
注册时间: 2016-03-02 9:29
系统: win+linux

Re: 求助,网络超慢,过会会断开连接

#7

帖子 csdcn »

非常感谢大神详细的解答,我用第一种方法解决问题了。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助,网络超慢,过会会断开连接

#8

帖子 vickycq »

csdcn 写了:非常感谢大神详细的解答,我用第一种方法解决问题了。
请问你的无线网卡使用正常了吗?
方便的话再把 sudo lshw -C net 的内容发上来看看,确认一下
顺便编辑主贴标题在开头加上 [已解决][rtl8192cu] 字样 :-)
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
csdcn
帖子: 6
注册时间: 2016-03-02 9:29
系统: win+linux

Re: 求助,网络超慢,过会会断开连接

#9

帖子 csdcn »

应该正常了吧,浏览网页蛮流畅的

我是昨天不会升级内核,用了你给的这个链接 https://github.com/pvaret/rtl8192cu-fixes试了下

gj@gj-ThinkCentre-E73:~$ sudo lshw -C net
[sudo] gj 的密码:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 0c
serial: d8:cb:8a:27:97:1a
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:29 ioport:d000(size=256) memory:f7104000-f7104fff memory:f7100000-f7103fff
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:2
logical name: wlx0857008c1444
serial: 08:57:00:8c:14:44
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu ip=192.168.31.220 multicast=yes wireless=IEEE 802.11bgn
csdcn
帖子: 6
注册时间: 2016-03-02 9:29
系统: win+linux

Re: 求助,网络超慢,过会会断开连接

#10

帖子 csdcn »

应该正常了吧,浏览网页蛮流畅的

我是昨天不会升级内核,用了你给的这个链接 https://github.com/pvaret/rtl8192cu-fixes试了下

gj@gj-ThinkCentre-E73:~$ sudo lshw -C net
[sudo] gj 的密码:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 0c
serial: d8:cb:8a:27:97:1a
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:29 ioport:d000(size=256) memory:f7104000-f7104fff memory:f7100000-f7103fff
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:2
logical name: wlx0857008c1444
serial: 08:57:00:8c:14:44
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu ip=192.168.31.220 multicast=yes wireless=IEEE 802.11bgn
回复