zoukankan      html  css  js  c++  java
  • 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地址

  • 相关阅读:
    Linux 用户和用户组配置文件
    Linux su和sudo的区别
    4-selenium-xpath定位
    3-selenium-元素定位
    1-selenium3安装
    vim 查看行数
    java学习day27-JavaScript
    java学习day26-CSS定位
    java学习day26-CSS(2)-布局+属性
    java学习day26-CSS(1)
  • 原文地址:https://www.cnblogs.com/songfeixiang/p/3733795.html
Copyright © 2011-2022 走看看