查询网卡状态
[root@localhost ~]# nmcli device status
DEVICE TYPE STATE CONNECTION
ens33 ethernet unmanaged --
lo loopback unmanaged --
上面状态提示未接管
开启网络
[root@localhost ~]# nmcli networking on
[root@localhost ~]# nmcli device set ens33 managed yes
再次查询网卡状态、启动网卡配置文件
[root@localhost ~]# nmcli device status
DEVICE TYPE STATE CONNECTION
ens33 ethernet connected static
lo loopback unmanaged --
应该就可以了
标签:nmcli,网卡,VMware,device,Ubuntu18.04,root,localhost,ens33 From: https://www.cnblogs.com/lshan/p/17702272.html