• 虚拟机中CentOS 7 网络服务启动失败


    故障描述

    虚拟机中的eth33网卡没有启动,执行systemctl status network.service启动报错

    报错信息

    [root@zeppelin network-scripts]# systemctl status network.service
    ● network.service - LSB: Bring up/down networking
       Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Fri 2019-06-21 03:22:10 PDT; 27s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 5948 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
      Process: 6074 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
     
    Jun 21 03:22:09 zeppelin.zetyun.com systemd[1]: Starting LSB: Bring up/down networking...
    Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: Bringing up loopback interface:  [  OK  ]
    Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: Bringing up interface ens33:  Error: Connection activation failed: No suitable device found for this connection.
    Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: [FAILED]
    Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: network.service: control process exited, code=exited status=1
    Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: Failed to start LSB: Bring up/down networking.
    Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: Unit network.service entered failed state.
    Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: network.service failed.

    解决办法

    与系统自带的NetworkManager这个管理套件有关系,关闭并重启网络服务即可.(来自网络)
    关掉方法:
    systemctl stop NetworkManager

    systemctl disable NetworkManager

    重新启动网络:
    systemctl start network.service

    其它信息:网卡配置ifcfg-ens33

    TYPE="Ethernet"
    BOOTPROTO="dhcp"
    DEFROUTE="yes"
    PEERDNS="yes"
    PEERROUTES="yes"
    IPV4_FAILURE_FATAL="no"
    IPV6INIT="yes"
    IPV6_AUTOCONF="yes"
    IPV6_DEFROUTE="yes"
    IPV6_PEERDNS="yes"
    IPV6_PEERROUTES="yes"
    IPV6_FAILURE_FATAL="no"
    IPV6_ADDR_GEN_MODE="stable-privacy"
    NAME="ens33"
    UUID="b30ae93f-cd63-4c7b-b22b-28d1799d1b10"
    DEVICE="ens33"
    ONBOOT="yes"

     

    故障描述

    虚拟机中的eth33网卡没有启动,执行systemctl status network.service启动报错

    报错信息

    1.  
      [root@zeppelin network-scripts]# systemctl status network.service
    2.  
      network.service - LSB: Bring up/down networking
    3.  
      Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
    4.  
      Active: failed (Result: exit-code) since Fri 2019-06-21 03:22:10 PDT; 27s ago
    5.  
      Docs: man:systemd-sysv-generator(8)
    6.  
      Process: 5948 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
    7.  
      Process: 6074 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
    8.  
       
    9.  
      Jun 21 03:22:09 zeppelin.zetyun.com systemd[1]: Starting LSB: Bring up/down networking...
    10.  
      Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: Bringing up loopback interface: [ OK ]
    11.  
      Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: Bringing up interface ens33: Error: Connection activation failed: No suitable device found for this connection.
    12.  
      Jun 21 03:22:10 zeppelin.zetyun.com network[6074]: [FAILED]
    13.  
      Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: network.service: control process exited, code=exited status=1
    14.  
      Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: Failed to start LSB: Bring up/down networking.
    15.  
      Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: Unit network.service entered failed state.
    16.  
      Jun 21 03:22:10 zeppelin.zetyun.com systemd[1]: network.service failed.

    解决办法

    与系统自带的NetworkManager这个管理套件有关系,关闭并重启网络服务即可.(来自网络)
    关掉方法:
    systemctl stop NetworkManager

    systemctl disable NetworkManager

    重新启动网络:
    systemctl start network.service

     

    其它信息:网卡配置ifcfg-ens33

    1.  
      TYPE="Ethernet"
    2.  
      BOOTPROTO="dhcp"
    3.  
      DEFROUTE="yes"
    4.  
      PEERDNS="yes"
    5.  
      PEERROUTES="yes"
    6.  
      IPV4_FAILURE_FATAL="no"
    7.  
      IPV6INIT="yes"
    8.  
      IPV6_AUTOCONF="yes"
    9.  
      IPV6_DEFROUTE="yes"
    10.  
      IPV6_PEERDNS="yes"
    11.  
      IPV6_PEERROUTES="yes"
    12.  
      IPV6_FAILURE_FATAL="no"
    13.  
      IPV6_ADDR_GEN_MODE="stable-privacy"
    14.  
      NAME="ens33"
    15.  
      UUID="b30ae93f-cd63-4c7b-b22b-28d1799d1b10"
    16.  
      DEVICE="ens33"
    17.  
      ONBOOT="yes"

     

  • 相关阅读:
    Go语言之函数基础
    Go语言之内置函数与包函数
    【LeetCode】1668.最大重复子字符串(三)
    [Python]编码规范性(四)——注释(属性、格式)
    【LeetCode】1929. 数组串联(2)
    [Python]编码规范性(三)——注释(类、接口、函数)
    [Python]编码规范性(五)——命名(包和模块、类、函数)
    [Python]序列为空的判定
    【LeetCode】27. 移除元素
    [Python]编码规范性(一)——排版(缩进、语句、空格)
  • 原文地址:https://www.cnblogs.com/liuys635/p/13414184.html
Copyright © 2020-2023  润新知