CentOS 8重啟后網(wǎng)卡不見(jiàn)了解決辦法
1、問(wèn)題描述
???CentOS 8重啟后網(wǎng)卡不見(jiàn)了,也無(wú)法上網(wǎng)。
2、嘗試用nmcli connection up ens160命令修復(fù),提示?unmanaged
[root@compute02 network-scripts]# nmcli connection up ens160
Error: Connection activation failed: No suitable device found for this connection (device lo not available because device is strictly unmanaged).
3、通過(guò)nmcli device status 命令查詢(xún)了一下設(shè)備狀態(tài),為unmanaged
[root@compute02 network-scripts]# nmcli device status?
DEVICE? TYPE? ? ? STATE? ? ? CONNECTION?
virbr0? bridge? ? unmanaged? --? ? ? ? ?
ens160? ethernet? unmanaged? --? ? ? ? ?
ens192? ethernet? unmanaged? --? ? ? ? ?
lo? ? ? loopback? unmanaged? --? ? ? ? ?
4、確定NetworkManager是否已接管了系統(tǒng)的網(wǎng)絡(luò)連接管理,發(fā)現(xiàn)是disabled?
[root@compute02 network-scripts]# nmcli networking?
disabled
5、手動(dòng)開(kāi)啟,問(wèn)題解決
[root@compute02 network-scripts]# nmcli networking on
[root@compute02 network-scripts]# ping www.baidu.com
PING www.a.shifen.com (14.119.104.254) 56(84) bytes of data.
64 bytes from 14.119.104.254 (14.119.104.254): icmp_seq=1 ttl=50 time=20.8 ms
64 bytes from 14.119.104.254 (14.119.104.254): icmp_seq=2 ttl=50 time=20.2 ms
64 bytes from 14.119.104.254 (14.119.104.254): icmp_seq=3 ttl=50 time=19.9 ms
64 bytes from 14.119.104.254 (14.119.104.254): icmp_seq=4 ttl=50 time=20.0 ms