[@localhost ~]nmcli
virbr0: unmanaged
"virbr0"
bridge, 52:54:00:1B:A2:A1, sw, mtu 1500
ens33: unmanaged
"Intel 82545EM"
ethernet (e1000), 00:0C:29:56:8B:FF, hw, mtu 1500
[@localhost ~]$ nmcli c up ens33
Error: Connection activation failed: No suitable device found for this connection.
localhost ~]$ chkconfig NetworkManager.service
[localhost ~]$ chkconfig network on
You do not have enough privileges to perform this operation.
[localhost ~]$ su
Password:
[root@localhost ]# chkconfig network on
[root@localhost ]# service NetworkManager stop
Redirecting to /bin/systemctl stop NetworkManager.service
[root@localhost ]# service network start
Starting network (via systemctl): [ OK ]
[root@localhost ]# nmcli
Error: NetworkManager is not running.
查询IP后,正常获取IP