CentOS 8重启后网卡不见了解决办法

1、问题描述

CentOS 8重启后网卡不见了,也无法上网。

2、尝试用nmcli connection up ens160命令修复,提示 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、通过nmcli device status 命令查询了一下设备状态,为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是否已接管了系统的网络连接管理,发现是disabled

root@compute02 network-scripts# nmcli networking

disabled

5、手动开启,问题解决

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

相关推荐
AlfredZhao2 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐3 天前
Linux内存扩容指南
linux
zylyehuo3 天前
Linux 彻底且安全地删除文件
linux
用户805533698034 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297914 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux
乘云数字DATABUFF4 天前
5分钟部署开源APM Databuff:OpenTelemetry全链路追踪入门实战
运维·后端
Web3探索者6 天前
可视化服务器管理和传统命令行区别是什么?新手教程:Linux 运维到底该用图形界面还是 SSH 命令行?
linux·ssh
zylyehuo6 天前
Linux系统中网线与USB网络共享冲突
linux
荣--6 天前
一键部署不是为了省时间 —— 它是把"买来的 PaaS"变成"自己的平台"的拐点
运维·zabbix·工程化·一键部署·平台化·边界设计
江华森6 天前
动手实战学 Docker — 从零到集群编排完全指南
运维