nmcli-device-status-unmanaged

症状:

nmcli device status
DEVICE        TYPE      STATE                                  CONNECTION
enp89s0       ethernet  unmanaged                              --         
lo            loopback  unmanaged                              --

检查/etc/NetworkManager/NetworkManager.conf,如果[ifupdown]里的managedfalse,那就改成true

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

然后重启服务:

sudo systemctl restart NetworkManager

然后就好了:

nmcli device status
DEVICE        TYPE      STATE                                  CONNECTION 
enp89s0       ethernet  connected (externally)                 enp89s0
lo            loopback  unmanaged                              --

参考:

https://askubuntu.com/questions/1115117/ubuntu-18-04-ethernet-not-managed

相关:

https://askubuntu.com/questions/882806/ethernet-device-not-managed

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configuring_ip_networking_with_nmcli

posted @ 2024-09-28 13:42  寻找繁星  阅读(12)  评论(0编辑  收藏  举报