今天登录虚拟机中的centos,然后发现xshell连接不上了,我直接黑人问号???

问题:

进到虚拟机中:ip addr 发现我的en33网卡的ip地址怎么没了!!!

ip地址丢失不见,网卡报错,当重启网卡时

Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

按照提示输入systemctl status network.service查看报错如下

Failed to start LSB: Bring up/down networking.

一顿检查,发现配置基本没问题

最后在下面这篇博客找到答案:

(11条消息) centos7网卡报错,ip地址丢失不见等问题解决方法_weixin_30797199的博客-CSDN博客icon-default.png?t=LBL2https://blog.csdn.net/weixin_30797199/article/details/99802197?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164069755216780357259534%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=164069755216780357259534&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-2-99802197.pc_search_result_cache&utm_term=centos7%E6%9C%8D%E5%8A%A1%E5%99%A8ip%E5%9C%B0%E5%9D%80%E7%AA%81%E7%84%B6%E5%B0%B1%E6%B2%A1%E4%BA%86&spm=1018.2226.3001.4187

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐