systemctl status network.service命令,Failed to start LSB: Bring up/down networking.完美解决
场景描述,我在电脑里装好的虚拟机,今天突然就网络无法打开,并出现如下报错:
[root@ansible-control ~]# systemctl start network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[root@ansible-control ~]# systemctl status network
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since 日 2019-09-29 22:44:34 CST; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 5042 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
9月 29 22:44:34 ansible-control network[5042]: RTNETLINK answers: File exists
9月 29 22:44:34 ansible-control network[5042]: RTNETLINK answers: File exists
9月 29 22:44:34 ansible-control network[5042]: RTNETLINK answers: File exists
9月 29 22:44:34 ansible-control network[5042]: RTNETLINK answers: File exists
9月 29 22:44:34 ansible-control network[5042]: RTNETLINK answers: File exists
9月 29 22:44:34 ansible-control network[5042]: RTNETLINK answers: File exists
9月 29 22:44:34 ansible-control systemd[1]: network.service: control process exited, code=exited...s=1
9月 29 22:44:34 ansible-control systemd[1]: Failed to start LSB: Bring up/down networking.
9月 29 22:44:34 ansible-control systemd[1]: Unit network.service entered failed state.
9月 29 22:44:34 ansible-control systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
2.解决方法
关闭NetworkManager,罪魁祸首就是这个服务!
第一步:查看NetworkManager服务状态:
第二步:关闭NetworkManager,并设置开启默认不启动该服务:
1 2 3 4 5 |
|
第三步:重启network服务
1 2 3 4 5 6 |
|
发现还是报错,此时,我又百度了其它方法尝试,发现是MAC地址的问题,参考一篇文章:https://www.raksmart.com/29.html?l=zh-cn
第四步:查询主机的硬件地址:
第五步:修改/etc/sysconfig/network-scripts/ifcfg-配置_1文件
第六步:再次重启网络
1 2 |
|
此时已经成功开启网络!
来源地址:https://blog.csdn.net/weixin_46005650/article/details/127224636
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341