zoukankan      html  css  js  c++  java
  • “Device eth0 does not seem to be present”解决办法

    在KVM中克隆出新的CentOS虚拟机时,出现如下问题:
    # service network restart
    Shutting down loopback insterface: [ OK ]
    Bringing up loopback insterface: [ OK ]

    Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]

    用ifconfig查看发现缺少eth0,只有lo;用ifconfig -a查看发现多出了eth1的信息。

    解决办法1:
    # mv /etc/sysconfig/network-scripts/ifcfg-eth0  /etcsysconfig/network-scripts/ifcfg-eth1
    将eth0的mac地址改为eth1的mac地址,同时改变其DEVICE名称为eth1,再重启网络即可。

    解决办法2:
    # rm -rf /etc/udev/rules.d/70-persistent-net.rules
    # reboot


    总之,
    只要保证/etc/sysconfig/network-scripts/ifcfg-eth0 /etc/udev/rules.d/70-persistent-net.rules的信息一致即可,即网卡地址与网卡编号一致,这样service network restart 就可以配置成功。

    (参考:http://www.cnblogs.com/fbwfbi/archive/2013/04/29/3050907.html)

  • 相关阅读:
    UVa10779
    UVa10779
    C++ 内存管理学习笔记
    c++ 学习笔记
    AcWing 275 传纸条
    I
    Tree HDU6228
    Lpl and Energy-saving Lamps
    C
    Secret Poems
  • 原文地址:https://www.cnblogs.com/dyc-cfc/p/4341089.html
Copyright © 2011-2022 走看看