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

验证正常

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值