以太网已禁用联想 Legion 5,Ubuntu 20.04

以太网已禁用联想 Legion 5,Ubuntu 20.04

我的 wifi 运行正常。但是,当我尝试使用以太网连接时,却无法连接。以太网甚至不在设置中。我将在下面列出一些命令的输出以及我尝试过的操作。

ifconfig:

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:4e:cb:fe:fa  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1904  bytes 174018 (174.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1904  bytes 174018 (174.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:44:21:93  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp0s20f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.3  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::d111:7e77:a0f3:6d41  prefixlen 64  scopeid 0x20<link>
        inet6 fdd8:2918:dfd6:ef00:34c6:a262:f72d:577b  prefixlen 64  scopeid 0x0<global>
        inet6 fdd8:2918:dfd6:ef00:2484:510:129e:4f1  prefixlen 64  scopeid 0x0<global>
        ether 84:1b:77:99:ba:ab  txqueuelen 1000  (Ethernet)
        RX packets 24965  bytes 29016731 (29.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13800  bytes 2260811 (2.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

配置:

lo        no wireless extensions.

enp7s0    no wireless extensions.

wlp0s20f3  IEEE 802.11  ESSID:"HazemNetwork"  
          Mode:Managed  Frequency:2.427 GHz  Access Point: D8:29:18:DF:D6:F8   
          Bit Rate=58.5 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=58/70  Signal level=-52 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:90   Missed beacon:0

virbr0    no wireless extensions.

virbr0-nic  no wireless extensions.

docker0   no wireless extensions.

nmcli d:

DEVICE             TYPE      STATE         CONNECTION   
wlp0s20f3          wifi      connected     HazemNetwork 
docker0            bridge    connected     docker0      
virbr0             bridge    connected     virbr0       
p2p-dev-wlp0s20f3  wifi-p2p  disconnected  --           
enp7s0             ethernet  unmanaged     --           
lo                 loopback  unmanaged     --           
virbr0-nic         tun       unmanaged     --

sudo lshw-c 净:

  *-network                 
       description: Wireless interface
       product: Wi-Fi 6 AX201
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       logical name: wlp0s20f3
       version: 00
       serial: 84:1b:77:99:ba:ab
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.8.0-59-generic firmware=55.d9698065.0 QuZ-a0-hr-b0-55.u ip=192.168.1.3 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:16 memory:b2498000-b249bfff
  *-network DISABLED
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: enp7s0
       version: 15
       serial: 8c:8c:aa:b5:61:4e
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical
       configuration: broadcast=yes driver=r8169 driverversion=5.8.0-59-generic latency=0 link=no multicast=yes
       resources: irq:18 ioport:3000(size=256) memory:b2204000-b2204fff memory:b2200000-b2203fff
  *-network DISABLED
       description: Ethernet interface
       physical id: 3
       logical name: virbr0-nic
       serial: 52:54:00:44:21:93
       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

我尝试通过这个命令使用网络管理器:nm-connection-editor。我添加了以太网连接。但是,效果不太好。

我尝试使用此解决方案, 和这个.但什么也没起作用。

我不知道怎么回事,但我感觉这个docker连接与它有关系。

我希望有人能找到解决方案。提前致谢...

答案1

事实证明你的以太网已被禁用

这可能会有帮助:

sudo ifconfig enp7s0 up
sudo nmcli dev set enp7s0 managed yes

然后重新启动 NetworkManager:

sudo systemctl restart NetworkManager

答案2

我们可以通过手机的 USB 调制解调器或直接插入电缆来连接互联网,以方便使用。然后

sudo apt update
sudo apt install -y git build-essential
git clone https://github.com/lwfinger/rtw89.git
cd rtw89
make
sudo make install
sudo mkdir /usr/lib/firmware/rtw89
sudo cp  rtw8852a_fw.bin  /usr/lib/firmware/rtw89/
sudo modprobe rtw89pci

完成这些步骤后,您就可以在Wi-Fi菜单中选择Internet。

相关内容