• eth0 no such device(reload)


    转载自:http://blog.chinaunix.net/uid-25554408-id-292638.html

     

    今天我在vmware里安装了虚拟机,安装虚拟机就想安装vmware tools(这个道理你懂的),等我装完后发现ip地址不见了,一查eth0没了,奇怪,上网找资料看到一下东西就把问题解决了。

    VMWARE UBUNTU网口自动增加 eth0 no such device解决方案

    由于VMware重新分配了网卡的mac地址,而ubunut中又把原先的mac地址保存在缓存中,所以导致怎么重启网卡都是不能启用

    当执行 sudo /etc/init.d/networking restart

      * Reconfiguring network interfaces...eth0: ERROR while getting interface flags: No such deviceSIOCSIFADDR: No such deviceeth0: ERROR while getting interface flags: No such deviceSIOCSIFNETMASK: No such deviceSIOCSIFBRDADDR: No such deviceeth0: ERROR while getting interface flags: No such deviceeth0: ERROR while getting interface flags: No such deviceFailed to bring up eth0.

    解决方法:

    sudo rm /etc/udev/rules.d/70-persistent-net.rules  等重启虚拟机后网卡就好了。

    如果你要改主机名或者IP地址,那么可以修改以下文件:

    •/etc/hostname - 改主机名称 
    •/etc/network/interfaces - 改IP地址

  • 相关阅读:
    Font Awesome 中文网
    mobileselect学习
    JavaScript模块化
    webpack基本使用
    MVVM架构方式
    http-server开启测试服务器
    json-server模拟服务器API
    vue-router
    git的使用
    Vue生命周期
  • 原文地址:https://www.cnblogs.com/songfeixiang/p/3733795.html
Copyright © 2020-2023  润新知