以太网控制器未使用 r8168 模块

以太网控制器未使用 r8168 模块

我发现我的 eth0 接口经常处于关闭状态(我使用 wlan0 作为 WiFi)。经过一番谷歌搜索,我用 r8168 替换了 r8169 模块(apt-get install r8168-dkms),但重启后找不到“内核驱动程序正在使用”行:

root@controller:/home/me# lspci -v

07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07)
Subsystem: Dell RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
Flags: bus master, fast devsel, latency 0, IRQ 10
I/O ports at e000 [size=256]
Memory at f7c00000 (64-bit, non-prefetchable) [size=4K]
Memory at f0000000 (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 01-00-00-00-36-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting

以下是 的输出dkms status

root@controller:/home/me# dkms status
oem-audio-hda-daily, 0.201409230816~ubuntu14.04.1, 3.13.0-106-generic, x86_64: installed
oem-touchpad-alps-synaptics, 0.5wataugafour1, 3.13.0-106-generic, x86_64: installed
oem-touchpad-alps-synaptics, 0.5wataugafour1, 4.4.0-57-generic, x86_64: installed
r8168, 8.043.02, 4.4.0-57-generic, x86_64: installed
wireless-dw1707-precise-all, 3.12rc5p5, 3.5.0-61-generic, x86_64: installed

还:

root@controller:/home/me# lshw -C NETWORK
USB                       
*-network        
   description: Wireless interface
   product: QCA9565 / AR9565 Wireless Network Adapter
   vendor: Qualcomm Atheros
   physical id: 0
   bus info: pci@0000:06:00.0
   logical name: wlan0
   version: 01
   serial: a8:a7:95:b5:dd:f9
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
   configuration: broadcast=yes driver=ath9k driverversion=4.4.0-57-generic firmware=N/A ip=192.168.0.57 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
   resources: irq:18 memory:f7d00000-f7d7ffff memory:f7d80000-f7d8ffff
*-network UNCLAIMED
   description: Ethernet controller
   product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:07:00.0
   version: 07
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix vpd bus_master cap_list
   configuration: latency=0
   resources: ioport:e000(size=256) memory:f7c00000-f7c00fff memory:f0000000-f0003fff
*-network DISABLED
   description: Ethernet interface
   physical id: 2
   logical name: virbr0-nic
   serial: 52:54:00:71:16:c9
   size: 10Mbit/s
   capabilities: ethernet physical
   configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full link=no multicast=yes port=twisted pair speed=10Mbit/s

还:

root@controller:/home/me# modinfo r1869
modinfo: ERROR: Module r1869 not found.

现在输出中没有 eth0 接口ifconfig -a,可能是因为启动时没有检测到 r8168。

有人能告诉我我做错了什么或者忘记了什么吗?提前谢谢!

答案1

secure boot在 BIOS 中关闭。启用此功能后,Ubuntu 将不会加载未签名的内核模块。

编辑:

r8168-dkms 不是适合您的 Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet 控制器 (rev 07) 的驱动程序。

要卸载它:

sudo dkms remove r8168/8.043.02 --all# 卸载 r8168 内核模块

sudo apt-get purge r8168-dkms# 卸载 r8168-dkms

确保该文件/etc/modprobe.d/r8168-dkms.conf不存在。

重新启动计算机。

编辑您的问题以包含terminal前三行的输出modinfo r8169,以及sudo lshw -C network

您必须从以下位置下载 rtl8101 驱动程序http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=7&PFid=7&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

在此处输入图片描述

按照下载文件中的 README 文件中的说明进行操作,并查看此Realtek 以太网驱动程序错误 ubuntu 16.04从包含“对于产品:RTL8101/2/6E PCI Express”的答案开始)。

相关内容