Failed to start LSB: Bring up/down networking

安装完k8s之后,第二天机器无法putty,登陆虚拟机,ping www.baidu.com发现

[sysadmin@mycentos01 sysconfig]$ ping www.baidu.com
ping: www.baidu.com: 域名解析暂时失败

查看network服务器,发现报错Failed to start LSB: Bring up/down networking

[root@mycentos01 ~]# 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-06-06 20:49:56 CST; 43s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2845 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 3981 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

6月 06 20:49:56 mycentos01 network[3981]: RTNETLINK answers: File exists
6月 06 20:49:56 mycentos01 network[3981]: RTNETLINK answers: File exists
6月 06 20:49:56 mycentos01 network[3981]: RTNETLINK answers: File exists
6月 06 20:49:56 mycentos01 network[3981]: RTNETLINK answers: File exists
6月 06 20:49:56 mycentos01 network[3981]: RTNETLINK answers: File exists
6月 06 20:49:56 mycentos01 network[3981]: RTNETLINK answers: File exists
6月 06 20:49:56 mycentos01 systemd[1]: network.service: control process exited, code=exited status=1
6月 06 20:49:56 mycentos01 systemd[1]: Failed to start LSB: Bring up/down networking.
6月 06 20:49:56 mycentos01 systemd[1]: Unit network.service entered failed state.
6月 06 20:49:56 mycentos01 systemd[1]: network.service failed.

解决办法:大意是跟系统自带的NetworkManager这个管理套件有关系,关掉就可以解决。

systemctl stop NetworkManager
systemctl disable NetworkManager

[root@mycentos01 network-scripts]# systemctl stop NetworkManager
[root@mycentos01 network-scripts]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager-wait-online.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

重新启动网络:

systemctl start network.service

验证正常

你可能感兴趣的:(网络)