• Centos和redhat6.0后关于虚拟机克隆后无法启用网卡问题


    Centos和redhat6.0后关于虚拟机克隆后无法启用网卡问题

    在redhat和centos6.0以后的版本,如果我们用虚拟机装过一个系统后想克隆一个虚拟机用的话,我们会发现clone虚拟机网卡起不来,报一下错误:
    Error: No suitable device found: no device found for connection 'System eth0'.或者
    Bringing up interface eth0:  Device eth0 does not seem to be present, delaying initialization.
    同时我们执行ifconfig命令的时候,会发现显示eth1网卡网卡配置文件却为/etc/sysconfig/network-scripts/ifcfg-eth0。
    解决方法:
    centos—>删除这个 /etc/udev/rules.d/70-persistent-net.rules,重启后把这个文件里NAME="eth1"的eth1改成 eth0,同时也要修改ATTR{address}里的mac地址和/etc/sysconfig/network-scripts/ifcfg- eth0文件mac地址一致。
    redhat —>redhat有点麻烦,redhat需要把/etc/sysconfig/network-scripts/ifcfg-eth0这个文件重命 名为/etc/sysconfig/network-scripts/ifcfg-eth1,同时修改文件里面的DEVICE=eth0为 DEVICE=eth1,然后把/etc/udev/rules.d/70-persistent-net.rules
    文件中NAME="eth0"的删掉,重启网络服务器正常,只不过没有eth0,而是eth1.如果想改成eth0需要重启后把上述三个位置都修改后再重启。
  • 相关阅读:
    代码4
    readline,readlines,read函数
    代码3
    find函数
    字典的循环和if语句
    代码2
    代码1
    python除法
    字符串
    print函数
  • 原文地址:https://www.cnblogs.com/kyli816/p/3469125.html
Copyright © 2020-2023  润新知