Failed to start LSB: Bring up/do
2020-09-10 本文已影响0人
知然
Centos 7 外接的USB网卡热拔插一下..结果悲剧了.. 连不上网了...
执行命令
systemctl restart NetworkManager
结果正常,但是不能上网,ping也不通, 但是能打开路由器 192.168.1.1
执行命令
systemctl restart network
出现错误:
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
显示结果
● 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 四 2020-09-10 08:39:43 CST; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 7314 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test network[7314]: RTNETLINK answers: File exists
9月 10 08:39:43 test systemd[1]: network.service: control process exited, code=exited status=1
9月 10 08:39:43 test systemd[1]: Failed to start LSB: Bring up/down networking.
9月 10 08:39:43 test systemd[1]: Unit network.service entered failed state.
9月 10 08:39:43 test systemd[1]: network.service failed.
关键错误信息
Failed to start LSB: Bring up/down networking.
百度,谷歌也都查询了 没有啥结果
无非就是 停用 重启 NetworkManager
和 network
然而并没有什么卵用..
于是乎
使用终极大法第一式-- 返璞归真:删除所有网络配置.
cd /etc/sysconfig/network-scripts
rm -f ifcfg-*
终极大法第二式--起死回生:重启服务,实在不行,重启系统
systemctl restart network
systemctl restart NetworkManager
重新配置一下IP地址,好用了...
[注意] 删除之前备份一下,否则什么记录的wifi密码,各个环境的IP配置就都没了..
centos7的网卡驱动或者NetworkManager
一直都有问题.不同的机器状况不太一样. 没有仔细调查,但是知道重接大法---删除,重启..
例如 掉线, 闪断等, 往往重启一下 NetworkManager 就好用了,如果还不行,将之前所有配置都删掉, 但是在图形界面中删除么有用, 必须通过命令删除.