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. Dockerfile之nginx(六)

    一.Dokcerfile的基本指令   1)From 指定构建镜像的基础镜像 2)MAINTAINER 指定镜像的作者 3)RUN 使用前一条指令创建的镜像生产容器,并在容器中执行命令,执行结束后会自 ...

  2. Linux cp命令详解

    Linux cp命令 Linux cp命令主要用于复制文件或目录,将源文件复制至目标文件,或将多个源文件复制至目标目录 用法: cp [选项]... [-T] 源文件 目标文件 cp [选项]... ...

  3. html5-websocket实现基于远程方法调用的数据交互

    html5-websocket实现基于远程方法调用的数据交互   一般在传统网页中注册用户信息都是通过post或ajax提交到页面处理,到了HTML5后我们有另一种方法就是通过websocket进行数 ...

  4. oracle批量删除某个用户下的所有表

    打开sql developer,输入如下语句,把USERNAME替换为需要删除的的用户名 然后把查询出来的结果复制出来执行一遍就行了. SELECT 'DROP table '||table_name ...

  5. cocos2dx自带物理引擎-创建物理世界

    首先在createScene()里 auto scene = Scene::createWithPhysics(); 创建带有物理的场景 然后再OnEnter里创建边界框 auto body = Ph ...

  6. ORACLE procedure 一个参数分解成多个字符一点建议

    测试时给什么变量就会生成什么变量, 但是在PROCEDURE时,你给的变量就会变成去掉包含字符q'/ /' 使用procedure splice添加字符串结果,是不包含q'/.删除时用的riqi赋值语 ...

  7. 会话保持及Form表单

    1,cookie技术视图views里面:def index(request): #获取请求中的cookie num = request.COOKIES.get('num') if num: num = ...

  8. ubuntu下的Nessus插件更新

    00x1: 记录下nessus插件离线更新,免得每次度娘我Nessus是放在虚拟机里面. 00x2: nessus 插件更新地址: https://plugins.nessus.org/v2/offl ...

  9. 导出Excel实现 (ASP.NET C# 代码部分)

    背景: 实现导出Excel功能. 技术: ASP.NET  , 采用`Aspose.Cells`第三方组件, C# 实现通用部分. 根据前台Ext Grid完成导入Excel中文列与实际存储列的对应关 ...

  10. MAC地址表、ARP缓存表以及路由表

    一:MAC地址表详解 说到MAC地址表,就不得不说一下交换机的工作原理了,因为交换机是根据MAC地址表转发数据帧的.在交换机中有一张记录着局域网主机MAC地址与交换机接口的对应关系的表,交换机就是根据 ...