CentOS7 Failed to start LSB: Bring up/down networking.解决方法

https://www.cnblogs.com/bonjov1/p/4323836.html

CentOS7 Failed to start LSB: Bring up/down networking.解决方法
今天用CentOS7 RDO方式安装Openstack,文档上说要disable NetworkManager, 用 network服务才行。

但是我用 service network start命令启动时报错:

[[email protected] network-scripts]# service network start

Starting network (via systemctl):  Job for network.service failed. See ‘systemctl status network.service‘ and ‘journalctl -xn‘ for details.[FAILED][[email protected] network-scripts]# systemctl status network.servicenetwork.service - LSB: Bring up/down networking   Loaded: loaded (/etc/rc.d/init.d/network)   Active: failed (Result: exit-code) since Sat 2015-03-07 02:53:12 EST; 6s ago  Process: 8596 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain network[8596]: RTNETLINK answers: File ...Mar 07 02:53:12 localhost.localdomain systemd-sysctl[8913]: Overwriting earli...Mar 07 02:53:12 localhost.localdomain systemd[1]: network.service: control pr...Mar 07 02:53:12 localhost.localdomain systemd[1]: Failed to start LSB: Bring ...Mar 07 02:53:12 localhost.localdomain systemd[1]: Unit network.service entere...Hint: Some lines were ellipsized, use -l to show in full.

然后网上搜是因为没加HWADDR....这个我确实给删了....

先看log里说哪个网卡没有UP起来:

[[email protected] network-scripts]# cat /var/log/messages | grep network

Mar  7 03:05:18 localhost kernel: drop_monitor: Initializing network drop monitor serviceMar  7 03:05:19 localhost systemd-udevd[413]: renamed network interface eth1 to enp1s0f1Mar  7 03:05:19 localhost systemd-udevd[416]: renamed network interface eth5 to enp8s0f3Mar  7 03:05:19 localhost systemd-udevd[421]: renamed network interface eth3 to enp8s0f1Mar  7 03:05:19 localhost systemd-udevd[429]: renamed network interface eth4 to enp8s0f2Mar  7 03:05:19 localhost systemd-udevd[411]: renamed network interface eth0 to enp1s0f0Mar  7 03:05:19 localhost systemd-udevd[419]: renamed network interface eth2 to enp8s0f0Mar  7 03:05:25 localhost systemd-udevd[412]: renamed network interface eth1 to enp3s0f1Mar  7 03:05:25 localhost systemd-udevd[414]: renamed network interface eth3 to enp131s0f1Mar  7 03:05:25 localhost systemd-udevd[411]: renamed network interface eth0 to enp3s0f0Mar  7 03:05:25 localhost systemd-udevd[413]: renamed network interface eth2 to enp131s0f0Mar  7 03:05:25 localhost systemd-udevd[415]: renamed network interface eth4 to enp134s0f0Mar  7 03:05:25 localhost systemd-udevd[416]: renamed network interface eth5 to enp134s0f1Mar  7 03:05:30 localhost systemd: Starting Import network configuration from initramfs...Mar  7 03:05:30 localhost systemd: Started Import network configuration from initramfs.Mar  7 03:05:40 localhost systemd: Starting Rollback uncommitted netcf network config change transactions...Mar  7 03:05:40 localhost systemd: Started Rollback uncommitted netcf network config change transactions.Mar  7 03:05:43 localhost systemd: Starting LSB: Bring up/down networking...Mar  7 03:05:45 localhost network: Bringing up loopback interface:  [  OK  ]Mar  7 03:05:45 localhost network: Bringing up interface br0:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device br0 does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost /etc/sysconfig/network-scripts/ifup-eth: Device br0 does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost network: [FAILED]Mar  7 03:05:45 localhost network: Bringing up interface enp1s0f0:  [  OK  ]Mar  7 03:05:45 localhost network: Bringing up interface enp8s0f0:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost /etc/sysconfig/network-scripts/ifup-eth: Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost network: [FAILED]Mar  7 03:05:45 localhost network: Bringing up interface enp8s0f1:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost /etc/sysconfig/network-scripts/ifup-eth: Device  does not seem to be present, delaying initialization.Mar  7 03:05:45 localhost network: [FAILED]Mar  7 03:05:45 localhost systemd: network.service: control process exited, code=exited status=1Mar  7 03:05:45 localhost systemd: Failed to start LSB: Bring up/down networking.Mar  7 03:05:45 localhost systemd: Unit network.service entered failed state.Mar  7 03:05:48 localhost xinetd[1863]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking options compiled in.

ip addr查看这俩网卡的MAC:

[[email protected] network-scripts]# ip addr

1: lo: mtu 65536 qdisc noqueue state UNKNOWN     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00    inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft forever    inet6 ::1/128 scope host        valid_lft forever preferred_lft forever2: enp1s0f0: mtu 1500 qdisc mq master br0 state UP qlen 1000    link/ether 00:25:90:64:a9:30 brd ff:ff:ff:ff:ff:ff    inet6 fe80::225:90ff:fe64:a930/64 scope link        valid_lft forever preferred_lft forever3: enp1s0f1: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:25:90:64:a9:31 brd ff:ff:ff:ff:ff:ff4: enp8s0f0: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:cc brd ff:ff:ff:ff:ff:ff5: enp8s0f1: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:cd brd ff:ff:ff:ff:ff:ff6: enp8s0f2: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:ce brd ff:ff:ff:ff:ff:ff7: enp8s0f3: mtu 1500 qdisc noop state DOWN qlen 1000    link/ether 00:0c:bd:05:4e:cf brd ff:ff:ff:ff:ff:ff

然后把这俩网卡的mac写到配置文件里:

/etc/sysconfig/network-scripts/ifcfg-enp8s0f0

/etc/sysconfig/network-scripts/ifcfg-enp8s0f1

??

添加:

HWADDR=00:0c:bd:05:4e:cc?

然后重新启动network,就OK啦!

很久没更新了,其实问题不一定是MAC的问题,也有其他的可能性。下面是另一种情况:

虚拟机里边的CentOS7重启之后无法联网了,重启network发现报错。

百度了一圈,都是叫修改mac地址的说法,但是改了之后并没有什么用,最后谷歌解决了。

事实证明百度就是个水货!

解决方式:禁用NetworkManager

1. systemctl stop NetworkManager
2. systemctl disable NetworkManager

然后重启网络服务,能正常联网了!

原文地址:https://www.cnblogs.com/yanxiatingyu/p/9804357.html

时间: 2024-10-11 20:59:03

CentOS7 Failed to start LSB: Bring up/down networking.解决方法的相关文章

CentOS7 重启网卡Failed to start LSB: Bring up/down networking.解决方法

环境:MAC PD虚拟机安装centos7 修改完网卡配置,重启网络服务报错 使用提示命令查看:systemctl status network.service 发现报错为Failed to start LSB: Bring up/down networking 百度了很多解决办法,无外乎是修改mac地址等,但是修改了并没有什么卵用,最后依靠伟大的谷歌,问题解决 解决方式:禁用NetworkManager 1. systemctl stop NetworkManager 2. systemctl

CentOS7 Failed to start LSB: Bring up/down networking. 已解决!!!

服务器更换了主板之前配置的静态IP发现启动网卡出现异常. 执行 service network restart 出现以下错误 Restarting network (via systemctl):  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.   尝试了好多种方法终于彻底解决掉了. 在centos7系统下执行: systemctl

[转载]解决虚拟机中Centos7出现错误:Failed to start LSB: Bring up/down networking

1.执行 service network restart 出现以下错误 Restarting network (via systemctl):  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details. 2.根据上面的提示,执行“systemctl status network.service”输出以下的类似信息: [[email protect

CentOS7 Failed to start LSB: Bring up/down

原文地址:http://addam.blog.51cto.com/5041993/1839518 刚刚装好的虚拟机突然不能上网了,报错很诡异,具体报错如下: /etc/init.d/network restart Restarting network (via systemctl):  Job for network.service failed because the control process exited with error code. See "systemctl status n

CentOS7 Failed to start LSB: Bring up/down解决方法

刚刚装好的虚拟机突然不能上网了,报错很诡异,具体报错如下: /etc/init.d/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&quo

Centos7:Failed to start LSB: Bring up/down networking

一开始配置的ifcfg-ens33 [[email protected]141 ~]# cd /etc/sysconfig/network-scripts/ [[email protected]-141 network-scripts]# ls ifcfg-ens33 ifdown-post ifup-aliases ifup-post inactive ifcfg-lo ifdown-ppp ifup-bnep ifup-ppp init.ipv6-global ifdown ifdown-r

三种方法解决 Failed to start LSB: Bring up/down networking 问题

感谢朋友支持本博客.欢迎共同探讨交流.因为能力和时间有限,错误之处在所难免.欢迎指正! 假设转载.请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地址:http://blog.csdn.net/qq_21398167/article/details/46694179 <-> 1.运行 service network restart 出现下面错误 Restarting network (via systemctl):  Job for netw

(转)启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结

启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结 原文:http://blog.51cto.com/11863547/1905929 http://blog.csdn.net/debimeng/article/details/74296152?utm_source=itdadao&utm_medium=referral Failed to start LSB: Bring up/down networking 遇到这个错误好

code=exited,status=1/failure;failed to start LSB:Bring up/down networking

环境: CentOS 7 vmware 12 操作: 复制可使用的vmware centOS 7系统至新环境 问题: 无法启动网络 查看“systemctl status network" 红色提示:”code=exited,status=1/failure“    和 ”failed to start LSB:Bring up/down networking“ 百度.google 各种方法无效,例如添加物理MAC等等 解决: vmware 12 网络设置,还原默认设置