网络管理器不再显示有线以太网(Realtek 8168)

网络管理器不再显示有线以太网(Realtek 8168)

昨天某个时候,我丢失了有线以太网连接。它不再出现在网络管理器中,似乎也不再处于活动状态ifconfig,但无线适配器处于活动状态。

可能的线索:这似乎是在网络管理器(1.22.10-1ubuntu2.2/3)更新后不久发生的,但也有内核更新(5.4.0-97.110)和 system76 驱动程序(20.04.47~1641830102~20.04~12f1c0f~dev、20.04.48~1643752136~20.04~8120238~dev)。

尝试缓解措施:我尝试安装描述的脚本这里,描述的r8168-dkms内核模块这里,并进行完全关闭并重新启动,但无济于事。

可能相关命令的输出:

sudo lshw -C network
  *-network DISABLED        
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0.1
       bus info: pci@0000:6d:00.1
       logical name: enp109s0f1
       version: 12
       serial: 80:fa:5b:3f:01:33
       size: 1Gbit/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.048.00-NAPI duplex=full latency=0 link=no multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:125 ioport:d000(size=256) memory:dc204000-dc204fff memory:dc200000-dc203fff
  *-network
       description: Wireless interface
       product: Wireless 8265 / 8275
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:6e:00.0
       logical name: wlp110s0
       version: 78
       serial: 00:28:f8:35:58:4a
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.15.15-76051515-generic firmware=36.ca7b901d.0 8265-36.ucode ip=192.168.0.14 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:129 memory:dc100000-dc101fff

猫/etc/netplan/*.yaml

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

猫/等/网络/接口

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

答案1

我无法解释为什么这是必要的,但解决方案归结为确保有线接口是“可管理的”。我/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf从以下方面进行了更改:

[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except:type:cdma

到:

[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except:type:cdma,except:type:ethernet

现在我的有线接口立即可用。无需新的电缆、驱动程序或脚本。

相关内容