Linux, 工作, 生活, 家人

Linux, Ubuntu

NetworkManager inactive

最近發生一件怪事, VM suspend 當掉之後, networkmanager 顯示 inactive

用 nmcli 看系統, 所有的 interface 都是 unmanaged

$ nmcli
ens33: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:AC, hw, mtu 1500

ens38: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:B6, hw, mtu 1500

ens39: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:C0, hw, mtu 1500

ens40: unmanaged
        "Intel 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)"
        ethernet (e1000), 00:0C:29:29:D4:CA, hw, mtu 1500

lo: unmanaged
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

nmcli 看 general, 狀況是 asleep, 找了許多網路上的方法都沒有用

# nmcli g
STATE   CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN    
asleep  none          enabled  enabled  enabled  enabled 

最後自己亂試指令, 果然回來了

$ nmcli networking on

發佈留言