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命令启动时报错:

[root@localhost network-scripts]# service network start

Starting network (via systemctl):  Job -- :: EST; 6s ago  Process:  ExecStart=/etc/rc.d/init.d/network start (code=exited, status=/FAILURE)Mar  :: localhost.localdomain network[]: RTNETLINK answers: File ...Mar  :: localhost.localdomain network[]: RTNETLINK answers: File ...Mar  :: localhost.localdomain network[]: RTNETLINK answers: File ...Mar  :: localhost.localdomain network[]: RTNETLINK answers: File ...Mar  :: localhost.localdomain network[]: RTNETLINK answers: File ...Mar  :: localhost.localdomain network[]: RTNETLINK answers: File ...Mar  :: localhost.localdomain systemd-sysctl[]: Overwriting earli...Mar  :: localhost.localdomain systemd[]: network.service: control pr...Mar  :: localhost.localdomain systemd[]: Failed to start LSB: Bring ...Mar  :: localhost.localdomain systemd[]: Unit network.service entere...Hint: Some lines were ellipsized, use -l to show in full.

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

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

[root@localhost network-scripts]# cat /var/log/messages | grep network

Mar   :: localhost kernel: drop_monitor: Initializing network drop monitor serviceMar   :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd-udevd[]: renamed network  :: localhost systemd: Starting Import network configuration  :: localhost systemd: Started Import network configuration  :: localhost systemd: Starting Rollback uncommitted netcf network config change transactions...Mar   :: localhost systemd: Started Rollback uncommitted netcf network config change transactions.Mar   :: localhost systemd: Starting LSB: Bring up/down networking...Mar   :: localhost network: Bringing up loopback  :: localhost network: Bringing up  :: localhost /etc/sysconfig/network-scripts/ifup-eth: Device br0 does not seem to be present, delaying initialization.Mar   :: localhost network: [FAILED]Mar   :: localhost network: Bringing up  :: localhost network: Bringing up  :: localhost /etc/sysconfig/network-scripts/ifup-eth: Device  does not seem to be present, delaying initialization.Mar   :: localhost network: [FAILED]Mar   :: localhost network: Bringing up  :: localhost /etc/sysconfig/network-scripts/ifup-eth: Device  does not seem to be present, delaying initialization.Mar   :: localhost network: [FAILED]Mar   :: localhost systemd: network.service: control process exited, code=exited status=1Mar   :: localhost systemd: Failed to start LSB: Bring up/down networking.Mar   :: localhost systemd: Unit network.service entered failed state.Mar   :: localhost xinetd[]: xinetd Version  started with libwrap loadavg labeled-networking options compiled in.

ip addr查看这俩网卡的MAC:

[root@localhost network-scripts]# ip addr

: lo: mtu  qdisc noqueue state UNKNOWN     link/loopback ::::: brd :::::    inet  scope host lo       valid_lft forever preferred_lft forever    inet6 ::/ scope host        valid_lft forever preferred_lft forever2: enp1s0f0: mtu  qdisc mq master br0 state UP qlen     link/ether ::::a9: brd ff:ff:ff:ff:ff:ff    inet6 fe80:::90ff:fe64:a930/ scope link        valid_lft forever preferred_lft forever3: enp1s0f1: mtu  qdisc noop state DOWN qlen     link/ether ::::a9: brd ff:ff:ff:ff:ff:ff4: enp8s0f0: mtu  qdisc noop state DOWN qlen     link/ether :0c:bd::4e:cc brd ff:ff:ff:ff:ff:ff5: enp8s0f1: mtu  qdisc noop state DOWN qlen     link/ether :0c:bd::4e:cd brd ff:ff:ff:ff:ff:ff6: enp8s0f2: mtu  qdisc noop state DOWN qlen     link/ether :0c:bd::4e:ce brd ff:ff:ff:ff:ff:ff7: enp8s0f3: mtu  qdisc noop state DOWN qlen     link/ether :0c:bd::4e:cf brd ff:ff:ff:ff:ff:ff

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

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

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

​​

添加:

HWADDR=:0c:bd::4e:cc​

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

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

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

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

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

解决方式:禁用NetworkManager

. systemctl stop NetworkManager
. systemctl disable NetworkManager

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

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

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

    环境:MAC PD虚拟机安装centos7 修改完网卡配置,重启网络服务报错 使用提示命令查看:systemctl status network.service 发现报错为Failed to star ...

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

    服务器更换了主板之前配置的静态IP发现启动网卡出现异常. 执行 service network restart 出现以下错误 Restarting network (via systemctl):  ...

  3. Failed to start LSB: Bring up/down错误解决方法

    很多朋友在使用centos7系统时,有时候需要分配多个IP地址,这就涉及到修改网卡配置,但是在修改完网卡配置时,重启网络服务时会出现"Failed to start LSB: Bring u ...

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

    1.执行 service network restart 出现以下错误 Restarting network (via systemctl):  Job for network.service fai ...

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

    刚刚装好的虚拟机突然不能上网了,报错很诡异,具体报错如下: /etc/init.d/network restart Restarting network (via systemctl):  Job f ...

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

    一开始配置的ifcfg-ens33 [root@cdh- ~]# cd /etc/sysconfig/network-scripts/ [root@cdh- network-scripts]# ls ...

  7. CentOS7 Failed to start LSB: Bring up/down

    原文地址:http://addam.blog.51cto.com/5041993/1839518 刚刚装好的虚拟机突然不能上网了,报错很诡异,具体报错如下: /etc/init.d/network r ...

  8. CentOS7 Failed to start LSB: Bring up/down解决方法(真正有效的方法)

    刚刚装好的虚拟机突然不能上网了,报错很诡异,具体报错如下: /etc/init.d/network restart Restarting network (via systemctl):  Job f ...

  9. Failed to start LSB: Bring up/down networking 问题

    Failed to start LSB: Bring up/down networking 问题   1.执行 service network restart 出现以下错误 Restarting ne ...

随机推荐

  1. visio画图有感

    昨天在和一个同事看流程图,在我还在考虑图的含义时他说这个图太乱了,如果要团队成员看也会很费劲,并找出觉得画的好的案例. 对比两个图我发现了一个最大的差别是好的图形状都是水平或垂直对齐的,连接线也都是水 ...

  2. java-启动和关闭.exe程序

    链接: https://www.cnblogs.com/pengpengzhang/p/8675740.html https://blog.csdn.net/ZHANGHUI3239619/artic ...

  3. RDO快速部署OpenStack

    RDO快速部署OpenStack 1.RDO是什么 RDO是红帽Red Hat Enterprise Linux OpenStack Platform的社区版,类似RHEL和Fedora,RHEV和o ...

  4. redis 双写一致性 看一篇成高手系列1

    首先,缓存由于其高并发和高性能的特性,已经在项目中被广泛使用.在读取缓存方面,大家没啥疑问,都是按照下图的流程来进行业务操作. 但是在更新缓存方面,对于更新完数据库,是更新缓存呢,还是删除缓存.又或者 ...

  5. TF(3): 安装部署_Windows

    CUDA: CUDA(Compute Unified Device Architecture): CUDA™是一种由显卡厂商NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题. ...

  6. 使用Intellij搭建Servlet开发环境

    https://blog.csdn.net/yhao2014/article/details/45740111 使用Tomcat 9时,必须使用jre 1.8,否则会出现Unable to ping ...

  7. [转]检测到有潜在危险的 Request.Form 值

    <system.web> <httpRuntime targetFramework="4.0" requestValidationMode="2.0&q ...

  8. 廖雪峰Java7处理日期和时间-3java.time的API-2ZonedDateTime

    ZonedDatetime = LocalDateTime + ZoneId ZonedDateTime:带时区的日期和时间 ZoneId:新的API定义的时区对象(取代几句的java.util.Ti ...

  9. Linux背背背(3)

    目录 1.文件操作命令 2.文件夹操作命令 文件操作命令 创建 命令:touch 语法:#touch 文件的名字      文件名可以是一个完整的路径 如果后面的参数文件名指定了路径,则表示在指定的路 ...

  10. spring 之 类型转换

    在spring中, 提供了至少三种的 类型转换方式:   ConversionServiceFactoryBean, FormattingConversionServiceFactoryBean, C ...