Ubuntu20.04 通过nmcli命令查看网卡状态为unmanaged

问题描述:

        通过下述指令查看网卡状态为 "unmanaged"

nmcli dev status

解决方法:

cd /usr/lib/NetworkManager/conf.d/
sudo mv 10-globally-managed-devices.conf 10-globally-managed-devices.conf.bak
sudo cp 10-globally-managed-devices.conf.bak 10-globally-managed-devices.conf
sudo sed -i '/unmanaged-devices/s/$/&,except:type:ethernet/' 10-globally-managed-devices.conf
sudo systemctl restart  NetworkManager

你可能感兴趣的:(Ubuntu,运维)