CentOS 7 下网络无法访问 Failed to start LSB: Bring up/.

摘要:
[ root@localhostDesktop]#ping192.168.2.1PING192.168.2.1(192.168.2.1)56(84)个字节的数据。来自192.168.2.1的64字节:icmp_seq=1ttl=64时间=0.067毫秒来自192.168.2.1:icmp-seq=2ttl=64时间=0.065毫秒来自192.168.19

[root@localhost Desktop]# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.067 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.065 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.079 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2006ms
rtt min/avg/max/mdev = 0.065/0.070/0.079/0.009 ms
[root@localhost Desktop]# ping www.baidu.com
ping: unknown host www.baidu.com
[root@localhost Desktop]# route add default gw 192.168.2.1
[root@localhost Desktop]# service network restart
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[FAILED]
[root@localhost Desktop]# 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 Thu 2017-08-17 19:13:34 PDT; 2min 13s ago
Docs: man:systemd-sysv-generator(8)
Process: 3688 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Aug 17 19:13:34 localhost.localdomain network[3688]: RTNETLINK answers: File exists
Aug 17 19:13:34 localhost.localdomain network[3688]: RTNETLINK answers: File exists
Aug 17 19:13:34 localhost.localdomain network[3688]: RTNETLINK answers: File exists
Aug 17 19:13:34 localhost.localdomain network[3688]: RTNETLINK answers: File exists
Aug 17 19:13:34 localhost.localdomain network[3688]: RTNETLINK answers: File exists
Aug 17 19:13:34 localhost.localdomain network[3688]: RTNETLINK answers: File exists
Aug 17 19:13:34 localhost.localdomain systemd[1]: network.service: control proce...1
Aug 17 19:13:34 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/....
Aug 17 19:13:34 localhost.localdomain systemd[1]: Unit network.service entered f....
Aug 17 19:13:34 localhost.localdomain systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost Desktop]# clear
[3;J
[root@localhost Desktop]# systemctl stop NetworkManager
[root@localhost Desktop]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
[root@localhost Desktop]# systemctl start network.service
[root@localhost Desktop]# ping www.baidu.com
PING www.a.shifen.com (111.13.100.91) 56(84) bytes of data.
64 bytes from 111.13.100.91: icmp_seq=1 ttl=51 time=20.8 ms
64 bytes from 111.13.100.91: icmp_seq=2 ttl=51 time=21.0 ms
64 bytes from 111.13.100.91: icmp_seq=3 ttl=51 time=22.2 ms
64 bytes from 111.13.100.91: icmp_seq=4 ttl=51 time=21.6 ms
64 bytes from 111.13.100.91: icmp_seq=5 ttl=51 time=21.6 ms
64 bytes from 111.13.100.91: icmp_seq=6 ttl=51 time=21.4 ms
64 bytes from 111.13.100.91: icmp_seq=7 ttl=51 time=21.2 ms
64 bytes from 111.13.100.91: icmp_seq=8 ttl=51 time=21.7 ms
64 bytes from 111.13.100.91: icmp_seq=9 ttl=51 time=52.0 ms
64 bytes from 111.13.100.91: icmp_seq=10 ttl=50 time=26.7 ms
64 bytes from 111.13.100.91: icmp_seq=11 ttl=50 time=24.9 ms
64 bytes from 111.13.100.91: icmp_seq=12 ttl=50 time=22.9 ms
64 bytes from 111.13.100.91: icmp_seq=13 ttl=50 time=27.9 ms
64 bytes from 111.13.100.91: icmp_seq=14 ttl=50 time=45.3 ms
64 bytes from 111.13.100.91: icmp_seq=15 ttl=50 time=54.8 ms
64 bytes from 111.13.100.91: icmp_seq=16 ttl=50 time=51.8 ms
64 bytes from 111.13.100.91: icmp_seq=17 ttl=50 time=32.6 ms
64 bytes from 111.13.100.91: icmp_seq=18 ttl=50 time=22.2 ms
64 bytes from 111.13.100.91: icmp_seq=19 ttl=50 time=22.9 ms
64 bytes from 111.13.100.91: icmp_seq=20 ttl=50 time=25.4 ms
64 bytes from 111.13.100.91: icmp_seq=21 ttl=50 time=23.0 ms
64 bytes from 111.13.100.91: icmp_seq=22 ttl=50 time=30.3 ms
64 bytes from 111.13.100.91: icmp_seq=23 ttl=50 time=25.2 ms
^C64 bytes from 111.13.100.91: icmp_seq=24 ttl=50 time=33.6 ms

--- www.a.shifen.com ping statistics ---
24 packets transmitted, 24 received, 0% packet loss, time 222495ms
rtt min/avg/max/mdev = 20.851/28.921/54.831/10.573 ms
You have new mail in /var/spool/mail/root
[root@localhost Desktop]#

免责声明:文章转载自《CentOS 7 下网络无法访问 Failed to start LSB: Bring up/.》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇如何同步两个SQLServer数据库的内容 dodoHMC5883L常见问题解答下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

linux安装mysql(unrecognized service错误)

今天在Linux在安装MySQL,安装完成后却无法打开,百度找原因,试了很多方法终于解决了。 MySQL安装: [root@centos usr]# yum install mysql 无法正常启动: 查询确实已安装: 按照百度的方法启动,还是无法开启:找不到此文件 换个命令重新安装: [root@centos ~]# yum install mys...

centos 安装 freeswitch,开启与关闭

---恢复内容开始--- 官网说明地址 :https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7 1.获取源码   git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git...

CentOS通过crontab定时重启服务器

最近有个需求,每天定时重启服务器 比较少干这个事情,于是上网找了一下,找到两篇博客是写CentOS是怎么用crontab定时重启服务器 很简单: 通过crontab -l 查看,还没有相应的命令 通过crontab -e 命令,进入编辑界面 参照别人的教程,加上一行命令(凌晨4:50重启): 50 4 * * * root /sbin/reboot :...

CentOS 7 配置本地yum源、在线yum源

  yum概述          yum是Yellow dog Updater, Modified 的简称,使用yum安装软件包需要为系统配置yum源(yum repository),可以使用http站点、ftp站点或本地镜像文件作为yum源,允许为系统配置多个yum源。   yum通过分析rpm软件包header信息自动解决软件包安装、升级或卸载过程中软...

Centos 查看,卸载已安装软件

终于因为工作碰到问题,在网上找了些资料,发现都是比较局限的,我想把它整合在一块,因为公司使用CentOS,所以有这方面的技术需要。 因为我在使用的时候,发现我的软件无法自动更新,所以从网上下了新版本,想说直接右键使用“软件包安装程序”打开安装,结果因为检测到我电脑上有之前版本,所以失败,无法使用这样安装。因此我得先卸载,然后才能安装。 使用RPM: 要知道...

CentOS服务器的16个监控命令

你可以通过图形化用户界面(GUI)程序来获取这些外壳命令提供的大量信息,具体取决于使用哪一种Linux发行版。比如说,SUSE Linux就有一款出色的、图形化配置和管理工具YaST,KDE的KDE System Guard同样很出色。 不过,Linux管理员要明白的一个常理是:只有绝对必要时,才应该在服务器上运行GUI。那是由于,Linux GUI耗用...