nmcli device status状态为unmanaged

遇到报错:(device lo not available because device is strictly unmanaged)

nmcli device status 查看设备状态

nmcli connection show状态为unmanaged

[root@192~]# nmcli connection show 
NAME    UUID                                  TYPE      DEVICE 
ens160  cf32e4bc-eaf9-3db0-98bb-2879bd5153d8  ethernet  --     

尝试修复,出现device is strictly unmanaged报错

[root@192~]# nmcli connection up ens33
Error: Connection activation failed: No suitable device found for this connection (device lo not available because device is strictly unmanaged).
 
[root@192~]# nmcli device up ens33
Error: Failed to add/activate new connection: Connection 'ens33' is not available on device ens160 because device is strictly unmanaged


[root@192~]# nmcli device set ens33 managed yes 
[root@192~]# nmcli device status 

尝试restart和reload NetworkManager.service均无效

[root@192~]# systemctl reload NetworkManager.service      

解决办法:

我的解决办法是

确定NetworkManager是否已接管了系统的网络连接管理

[root@192~]# nmcli networking 
disabled

若没有解决则需要手动开启接管

[root@192~]# nmcli networking on

接管后恢复正常

[root@192~]# nmcli connection show 
NAME    UUID                                  TYPE      DEVICE 
ens33  cf32e4bc-eaf9-3db0-98bb-2879bd5153d8  ethernet  ens33 
[root@192~]# nmcli device status 
DEVICE           TYPE      STATE                   CONNECTION 
ens33           ethernet  connected               ens33    
posted @ 2023-10-26 17:29  郑琰  阅读(3665)  评论(0编辑  收藏  举报
#

# #