如何恢复原始以太网设置?

如何恢复原始以太网设置?

我一直在弄乱我的互联网设置,因为它时断时续。当我尝试谷歌建议的终端命令时,它删除了我的有线网络设置 - 这是我看到的:

在此处输入图片描述

尽管我的 WiFi 仍然运行良好,但我还是更喜欢在 BIOS 中检测不到的以太网电缆。如果您有任何解决方案,请提前致谢。

输出ip link show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
2: wlp41s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
   link/ether 84:5c:f3:92:31:5f brd ff:ff:ff:ff:ff:ff

可能导致我的问题的命令是第 96 行的命令,但如果不是那个命令,则可能是以下命令之一:

   92  sudo lshw -class newtwork -short && nmcli device status
   93  sudo nano /etc/modprobe.d/iwlwifi.conf
   94  sudo apt update
   95  sudo apt install r8168-dkms
   96  sudo echo "blacklist r8169"  > /etc/modprobe.d/blacklist-r8169.conf
   97  /etc/NetworkManager/NetworkManager.conf
   98  sudo /etc/NetworkManager/NetworkManager.conf
   99  sudo nano /etc/NetworkManager/NetworkManager.conf
  100  sudo systemctl restart NetworkManager
  101  /etc/NetworkManager/system-connections
  102  sudo nano /etc/NetworkManager/system-connections
  103  gksu "service network-manager start"
  104  /etc/NetworkManager
  105  sudo nano /etc/NetworkManager
  106  nautilus /etc/NetworkManager
  107  sudo nano /etc/NetworkManager
  108  sudo nano /etc/NetworkManager/NetworkManager.conf
  109  sudo systemctl restart NetworkManager
  110  dpkg -S/etc/NetworkManager
  111  dpkg -S NetworkManager
  112  rm -r NetworkManager
  113  y
  114  sudo rm -r NetworkManager

的输出lspci -nnk | grep 0200 -A3是:

2a:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
    Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:7c95]
    Kernel modules: r8168
30:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev c9)

的输出sudo dkms status是:

r8168/8.049.02: added
system76/1.0.14~1643391291~22.04~78ede46, 5.19.0-76051900-generic, x86_64: installed
system76_acpi/1.0.2~1659568831~22.04~a88dcce, 5.19.0-76051900-generic, x86_64: installed (original_module exists)
system76-io/1.0.2~1655490480~22.04~0217576, 5.19.0-76051900-generic, x86_64: installed

的输出sudo modprobe r8168 && sudo dmesg | grep r816是:

modprobe: FATAL: Module r8168 not found in directory /lib/modules/5.19.0-76051900-generic

的输出sudo modprobe r8169 && sudo dmesg | grep r816是:

[12499.896230] r8169 0000:2a:00.0 eth0: RTL8168h/8111h, d8:bb:c1:6a:d8:b7, XID 541, IRQ 70
[12499.896235] r8169 0000:2a:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[12499.897810] r8169 0000:2a:00.0 enp42s0: renamed from eth0

相关内容