r8168连接随机掉线

r8168连接随机掉线

我的计算机 (HP ProBook 455 G1) 内置有 Realtek RTL8168 以太网卡,运行 Linux Mint 17.2 Cinnamon 64 位。

在您告诉我用Realtek 网站上的r8169模块替换预装模块之前,让我告诉您我已经这样做了。r8168我从Realtek的网站下载了8.040.00版本,这是R8168系列驱动程序的最新版本,编译并安装它,列入黑名单r8169并加载r8168

从那时起,我可以全速浏览(ISP 限制为 15 MB/s),但连接经常断开。只有拔出以太网电缆并重新插入,我才能恢复连接。很多人建议重新启动 NetworkManager 服务,而不是重新插入电缆,但没有任何效果。

此外,据我所知,我认为没有任何日志文件具有相关性,无论是/var/log/dmesg还是/var/log/kern.log/var/log/syslog。不过,我还是会将其中的一部分添加到问题中。

到目前为止,我在网上找到的所有内容都是一堆独立的帖子,都在说如何替换r8169r8168.所以我在那里找不到任何帮助,因为我已经这样做了。


$ lspci | grep Ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

$ uname -r
3.16.0-38-generic

$ modinfo r8168
filename:       /lib/modules/3.16.0-38-generic/kernel/drivers/net/ethernet/realtek/r8168.ko
version:        8.040.00-NAPI
license:        GPL
description:    RealTek RTL-8168 Gigabit Ethernet driver
author:         Realtek and the Linux r8168 crew <[email protected]>
srcversion:     BC1CAF8ECC36006913B85E5
alias:          pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*
depends:        
vermagic:       3.16.0-38-generic SMP mod_unload modversions 
parm:           speed:force phy operation. Deprecated by ethtool (8). (ushort)
parm:           duplex:force phy operation. Deprecated by ethtool (8). (int)
parm:           autoneg:force phy operation. Deprecated by ethtool (8). (int)
parm:           aspm:Enable ASPM. (int)
parm:           s5wol:Enable Shutdown Wake On Lan. (int)
parm:           rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm:           timer_count:Timer Interrupt Interval. (int)
parm:           eee_enable:Enable Energy Efficient Ethernet. (int)
parm:           hwoptimize:Enable HW optimization function. (ulong)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)

$ dmesg
[   32.996712] r8168: eth0: link up
[   32.996784] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  622.150591] r8168: eth0: link down
[  631.189380] r8168: eth0: link up
[ 3246.733396] r8168: eth0: link down
[ 3257.772281] r8168: eth0: link up
[ 3391.778415] r8168: eth0: link down
[ 3404.817620] r8168: eth0: link up
[ 3466.839390] r8168: eth0: link down
[ 3474.878029] r8168: eth0: link up
[ 3806.935588] perf interrupt took too long (2510 > 2500), lowering kernel.perf_event_max_sample_rate to 50000

请注意,所有这些link up问题link down都是由于重新插拔电缆造成的,而不是由于连接故障造成的。

$ cat /var/log/syslog
Jul  6 22:30:39 dracarys NetworkManager[950]: <info> (eth0): DHCPv4 state changed nbi -> preinit
Jul  6 22:30:39 dracarys dhclient: Listening on LPF/eth0/28:80:23:06:a2:a2
Jul  6 22:30:39 dracarys dhclient: Sending on   LPF/eth0/28:80:23:06:a2:a2
Jul  6 22:30:39 dracarys dhclient: Sending on   Socket/fallback
Jul  6 22:30:39 dracarys dhclient: DHCPREQUEST of 192.168.178.57 on eth0 to 255.255.255.255 port 67 (xid=0x3bac08d5)
Jul  6 22:30:39 dracarys dhclient: DHCPACK of 192.168.178.57 from 192.168.178.1
Jul  6 22:30:39 dracarys dhclient: bound to 192.168.178.57 -- renewal in 353258 seconds.
Jul  6 22:30:39 dracarys NetworkManager[950]: <info> (eth0): DHCPv4 state changed preinit -> reboot
Jul  6 22:30:39 dracarys NetworkManager[950]: <info>   address 192.168.178.57
Jul  6 22:30:39 dracarys NetworkManager[950]: <info>   prefix 24 (255.255.255.0)
Jul  6 22:30:39 dracarys NetworkManager[950]: <info>   gateway 192.168.178.1
Jul  6 22:30:39 dracarys NetworkManager[950]: <info>   nameserver '192.168.178.1'
Jul  6 22:30:39 dracarys NetworkManager[950]: <info>   domain name 'fritz.box'
Jul  6 22:30:39 dracarys NetworkManager[950]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Jul  6 22:30:39 dracarys NetworkManager[950]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Jul  6 22:30:39 dracarys avahi-daemon[954]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.178.57.
Jul  6 22:30:39 dracarys avahi-daemon[954]: New relevant interface eth0.IPv4 for mDNS.
Jul  6 22:30:39 dracarys avahi-daemon[954]: Registering new address record for 192.168.178.57 on eth0.IPv4.
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> (eth0): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> (eth0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> NetworkManager state is now CONNECTED_GLOBAL
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> Writing DNS information to /sbin/resolvconf
Jul  6 22:30:40 dracarys dnsmasq[4981]: setting upstream servers from DBus
Jul  6 22:30:40 dracarys dnsmasq[4981]: using nameserver 192.168.178.1#53
Jul  6 22:30:40 dracarys dnsmasq[4981]: using nameserver 8.8.4.4#53
Jul  6 22:30:40 dracarys dnsmasq[4981]: using nameserver 8.8.8.8#53
Jul  6 22:30:40 dracarys NetworkManager[950]: <info> Activation (eth0) successful, device activated.
Jul  6 22:30:41 dracarys avahi-daemon[954]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::2a80:23ff:fe06:a2a2.
Jul  6 22:30:41 dracarys avahi-daemon[954]: New relevant interface eth0.IPv6 for mDNS.
Jul  6 22:30:41 dracarys avahi-daemon[954]: Registering new address record for fe80::2a80:23ff:fe06:a2a2 on eth0.*.
Jul  6 22:30:47 dracarys ntpdate[30658]: adjust time server 91.189.89.199 offset 0.004269 sec
Jul  6 22:31:00 dracarys NetworkManager[950]: <info> (eth0): IP6 addrconf timed out or failed.
Jul  6 22:31:00 dracarys NetworkManager[950]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jul  6 22:31:00 dracarys NetworkManager[950]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jul  6 22:31:00 dracarys NetworkManager[950]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jul  6 22:36:11 dracarys kernel: [ 3806.935588] perf interrupt took too long (2510 > 2500), lowering kernel.perf_event_max_sample_rate to 50000

如果您需要任何进一步的信息,请告诉我。

相关内容