# Ubuntu22.04网卡丢失

1、首先确保网卡设备名称能看到,看不到,以下步骤无意义;

sudo lshw -c network

结果

 *-network DISABLED        
       description: Ethernet interface
       product: 82545EM Gigabit Ethernet Controller (Copper)
       vendor: Intel Corporation
       physical id: 5
       bus info: pci@0000:02:05.0
       logical name: ens37
       version: 01
       serial: 00:0c:29:a0:d1:f4
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 66MHz

2、命令行执行以下命令;

sudo service NetworkManager stop
sudo rm  /var/lib/NetworkManager/NetworkManager.state
sudo vi /etc/NetworkManager/NetworkManager.conf 

这一步将打开一个文件,把里面的managed=false改为managed=true 再保存。
sudo service NetworkManager start

posted @ 2022-08-24 17:39  成强  阅读(1202)  评论(0编辑  收藏  举报