刚接触 Ubuntu,Linux(因为我的第一次安装是在 3 天前)。最初它使用有线连接工作,但后来安装了一些系统更新,然后我的有线设置就消失了。我浏览了这个网站和其他一些网站,查看了非常相似的问题,但考虑到每台机器的独特性,如果不征求更多专家意见,我不愿意继续使用任何特定选项。现在我的以太网是网络 UNCLAIMED。我有 lshw -C 网络、ip a 和 lspci -k 读数,但如果我需要更多信息,请告诉我。
编辑1
lspci-k
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
Kernel driver in use: ivb_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. P8H77-I Motherboard
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation H77 Express Chipset LPC Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. P8H77-I Motherboard
00:1f.2 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode]
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
00:1f.5 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode]
Kernel driver in use: ata_piix
01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 660] (rev a1)
Subsystem: eVga.com. Corp. GK106 [GeForce GTX 660]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
Subsystem: eVga.com. Corp. GK106 HDMI Audio Controller
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard
alex@Bread:~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller [8086:0150] (rev 09)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0151] (rev 09)
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)
00:1c.4 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 [8086:1e18] (rev c4)
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation H77 Express Chipset LPC Controller [8086:1e4a] (rev 04)
00:1f.2 IDE interface [0101]: Intel Corporation 7 Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode] [8086:1e00] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22] (rev 04)
00:1f.5 IDE interface [0101]: Intel Corporation 7 Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode] [8086:1e08] (rev 04)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GK106 HDMI Audio Controller [10de:0e0b] (rev a1)
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09)
alex@Bread:~$ lspci -nn | grep -i 以太网
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09)
编辑2
alex@Bread:~$ dkms status
nvidia, 460.39, 5.8.0-43-generic, x86_64: installed
nvidia, 460.39, 5.8.0-48-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
alex@Bread:~$ sudo lshw -c network
*-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: 09
serial: 60:a4:4c:b5:1c:a9
size: 1Gbit/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-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.8.0-48-generic duplex=full firmware=rtl8168f-1_0.0.5 06/18/12 ip=192.168.10.152 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:16 ioport:d000(size=256) memory:f2104000-f2104fff memory:f2100000-f2103fff}
sudo modprobe r8168 导致连接恢复,现在有线连接设置已恢复。请注意,非常感谢您的帮助。
编辑3
dkms 状态
nvidia, 460.39, 5.8.0-43-generic, x86_64: installed
nvidia, 460.39, 5.8.0-48-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
猫/等/网络/接口
cat: /etc/network/interfaces: No such file or directory
sudo modprobe r8169 重启 sudo lshw -c network
*-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: 09
serial: 60:a4:4c:b5:1c:a9
size: 1Gbit/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-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.8.0-48-generic duplex=full firmware=rtl8168f-1_0.0.5 06/18/12 ip=192.168.10.152 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:16 ioport:d000(size=256) memory:f2104000-f2104fff memory:f2100000-f2103fff
modprobe r8168 之后互联网工作且设置恢复,modprobe r8169 没有明显的效果。
猫/etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ls -al /lib/modules/$(uname -r)/updates/dkms
total 1620
drwxr-xr-x 2 root root 4096 Mar 31 11:25 .
drwxr-xr-x 3 root root 4096 Mar 31 11:25 ..
-rw-r--r-- 1 root root 1648704 Mar 31 11:25 nvidia-uvm.ko
grep -i r816 /etc/modprobe.d/*.conf
不返回任何内容,只是移动到下一个命令行。
答案1
假设您安装了 r8168,而 r8169 被列入黑名单。内核更新后,r8168 消失。因此没有驱动程序,因此 NIC 无人认领。只需删除 r8169 黑名单即可。这似乎是一个常见问题,应该包含在一些常见问题解答中。