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. bootstrap modal 点击头部移动

    $(".modal").each(function(){ $(this).draggable({ handle: ".modal-header" // 只能点击 ...

  2. debian系统下apache2开启ssi功能

    SSI (Server Side Include)的 html 文件扩展名 (.shtml), 通常称为"服务器端嵌入"或者叫"服务器端包含"说白了就是类似其他 ...

  3. MIDAS.dll 出错时 (Error loading MIDAS.DLL.)

    DELPHI 写的程序会出 ---------------------------Pmain---------------------------Error loading MIDAS.DLL.--- ...

  4. 用git,clone依赖的库

    git clone https://github.com/influxdata/influxdb-java.git cd crfasrnn git submodule update --init -- ...

  5. Webservices部署在IIS6.0上的一个小问题

    部署方式还是跟网站的部署方式一样,可是通过localhost访问一直提示400(bad request)错误. 可以在iis上预览到.在vs上引用的时候怎么都预览不到. 换个思路,把localhost ...

  6. git一个分布式版本工具的使用

    1.git和cvs的区别 分支更快,更容易 支持离线工作,本地提交可以稍后提交到服务器上 git提交是原子的,且是整个项目范围的,而不像cvs是对每个文件 git中的每个工作树都包含一个具有完整项目历 ...

  7. 高阶函数map_reduce_sorted_filter

    能够把函数当成参数传递的参数就是高阶函数 map map: 功能: 拿iterable的每一个元素放入func中, func的返回值放入迭代器内进行返回 参数: iterable, func 返回: ...

  8. [图文教程]VS2017搭建opencv & C++ 开发环境

    首先从官网下载OpenCV最新版本 截至我写这文章,4.0已经发布预览版了,不过在这是没有的,只能用3.4.2: https://opencv.org/releases.html 一:安装 安装过程不 ...

  9. 面向对象object与constructor

    什么是constructor属性?它来自哪里?又将会指向何处? 什么是constructor属性? constructor是构造函数属性. 它来自哪里? 其实constructor属性是来自 prot ...

  10. 一个简单的gridlayout栗子

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...