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. 我发起了一个 操作系统 GUI 和 Tcp / IP 包 的 开源项目 DeviceOS

    操作系统 如果 不需要 处理 复杂多样 的 硬件 兼容性, 其实 并不算 大项目, 可以算 毕业设计 . 但是, GUI 和 Tcp / IP  这两个 部分 的 实现逻辑 很多 很复杂,  这  2 ...

  2. django 神奇的双下划线,通过外键的三种查询方式

    一,用于跨表操作 只要是object后面字符串都是用双下划线__.其它地方用点. 如:的values中的group_code__name.group_code是一个外键 def list(reques ...

  3. java中的内部类详解

    https://www.cnblogs.com/dolphin0520/p/3811445.html https://www.cnblogs.com/chenssy/p/3388487.html

  4. <Numerical Analysis>(by Timothy Sauer) Notes

    2ed,  by Timothy Sauer DEFINITION 1.3A solution is correct within p decimal places if the error is l ...

  5. 如何使用jQuery从字符串中删除最后一个字符

    如何使用jQuery从字符串中删除最后一个字符 1.string.slice(0,-1) 2.str.substring(0,str.length-1)

  6. 学习笔记 requests + BeautifulSoup

    第一步:requests get请求 # -*- coding:utf-8 -*- # 日期:2018/5/15 17:46 # Author:小鼠标 import requests url = &q ...

  7. c++ :

    (1)表示机构内位域的定义(即该变量占几个bit空间)   typedef struct _XXX{ unsigned char a:4; unsigned char c; } ; XXX

  8. TCP‘三次握手’和‘四次挥手’(通俗易懂)

      概述 我们都知道 TCP 是 可靠的数据传输协议,UDP是不可靠传输,那么TCP它是怎么保证可靠传输的呢?那我们就不得不提 TCP 的三次握手和四次挥手. 三次握手 下图为三次握手的流程图 下面通 ...

  9. 彻底解决COM端口被占用(在使用中)问题的办法

    今天就遇到这个问题了串口调试的时候发现usb转串口使用的是COM8而串口调试助手里面只有COM1到4,我想去该COM口发现COM1到7都在使用中,找了好多办法都不行,后面在网上找到这篇解决办法的文章, ...

  10. iOS开发中didSelectRowAtIndexPath tap事件响应延迟

    为UITableViewCell添加tapped事件,代码如下: class VideoViewController: UIViewController , UITableViewDataSource ...