zoukankan      html  css  js  c++  java
  • RHEL7虚拟机添加新网卡后,网卡无法启动

    RHEL7虚拟机添加新网卡后,网卡无法启动

    1.在开启网络时,有错误提示:

    # systemctl restart network.service  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.

    2.根据提示执行:提示错误日志如下

    # systemctl status network.service
    network.service - LSB: Bring up/down networking
       Loaded: loaded (/etc/rc.d/init.d/network)
       Active: failed (Result: exit-code) since Sat 2015-07-04 13:41:38 CST; 13s ago
      Process: 3453 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
      Process: 4692 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
    
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com network[4692]: RTNETLINK answers: File exists
    Jul 04 13:41:38 rhce7.example.com systemd[1]: network.service: control process exited, code=exited status=1
    Jul 04 13:41:38 rhce7.example.com systemd[1]: Failed to start LSB: Bring up/down networking.
    Jul 04 13:41:38 rhce7.example.com systemd[1]: Unit network.service entered failed state.
    # 

    3.用 ip addr 命令查看MAC地址与文件/etc/sysconfig/network-scripts/ifcfg-enp0s8中显示的不一致。

    4.修改/etc/sysconfig/netwrok-scripts/ifcfg-enp0s8 中HWADDR= * :*:*:*:*:* (也就是用IP ADDR 命令所查到的MAC)

    5.重启系统

  • 相关阅读:
    【AtCoder】Tenka1 Programmer Contest(C
    【AtCoder】AGC024
    【AtCoder】ARC098题解
    java反射机制详解 及 Method.invoke解释
    Spring切入点表达式常用写法
    border-radius 样式表CSS3圆角属性
    jquery判断自己是父节点的第几个子节点
    Spring事务配置的五种方式
    Spring中PropertyPlaceholderConfigurer的使用
    js中使用s(c)标签
  • 原文地址:https://www.cnblogs.com/abclife/p/4619920.html
Copyright © 2011-2022 走看看