zoukankan      html  css  js  c++  java
  • Linux 启动网络错误: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled),并且ping不通

    1、错误信息

    ● network.service - LSB: Bring up/down networking
       Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
       Active: active (exited) since 三 2020-06-17 14:17:55 CST; 5min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 21758 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
      Process: 21912 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)
    
    6月 17 14:17:54 localhost.localdomain systemd[1]: Stopped LSB: Bring up/down networking.
    6月 17 14:17:54 localhost.localdomain systemd[1]: Starting LSB: Bring up/down networking...
    6月 17 14:17:54 localhost.localdomain network[21912]: 正在打开环回接口: [  确定  ]
    6月 17 14:17:55 localhost.localdomain network[21912]: 正在打开接口 eth0: 连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/2)
    6月 17 14:17:55 localhost.localdomain network[21912]: [  确定  ]
    6月 17 14:17:55 localhost.localdomain systemd[1]: Started LSB: Bring up/down networking.

    2、解决方法

     ①、停掉NetworkManager

    service NetworkManager stop
    chkconfig NetworkManager off

     ②、配置文件设置Mac地址

            1)、查看IP/Mac 

    ip addr

      

           2)、配置文件添加/修改Mac

    vi /etc/sysconfig/network-scripts/ifcfg-eth0
    
    #添加修改Mac地址
    HWADDR=00:15:**:01:**:08

           3)、重启网络

    systemctl restart network
    
    #查看网络 systemctl status network

           4)、运行状态

     

  • 相关阅读:
    前端之css样式(选择器)
    html 之表单,div标签等
    前端基础之html
    【动态规划】【背包模板】
    【dp专题1】F
    【dp专题1】B
    hdu 1171 Big Event in HDU 01背包
    HDU 2048 数塔 简单DP
    练习赛2(补题)问题 G: 建设电力系统【最小生成树kruskal模板题】
    【图论】【最小生成树】【kruskal+prime】
  • 原文地址:https://www.cnblogs.com/study10000/p/13153051.html
Copyright © 2011-2022 走看看