出现这个问题有两种原因:

  • 虚拟机设置中没有添加对应的网卡
  • 更改了虚拟机中网卡的MAC,但是Debian 的缓存中将eth0与上次的MAC对应

解决方法:

这里仅就第二种问题提出解决方案:

删除/etc/udev/rules.d/70-persistent-net.rules,然后重新启动虚拟机。

参考:

http://askubuntu.com/questions/9375/new-mac-address-now-i-have-no-network-access

https://forums.virtualbox.org/viewtopic.php?f=7&t=43090

Since your mac address have changed you no longer have an interface called eth0, this name is reserved for an interface with the "old" mac-address. The "new" interface should have the next free name (eg. ethN).

each time you give a new MAC address (in VBox guest settings) Debian and Ubuntu guests udev assigns a new eth number
edit /etc/udev/rules.d/70-persistent-net.rules or delete the file: it will be recreated @ next boot

最新文章

  1. Eclipse的python插件安装
  2. select XXX into 和 Insert into XXX select
  3. leetcode面试准备:Triangle
  4. 一个Highcharts的例子
  5. java构造方法的不同
  6. IOS开发-UI学习-NSBundle和NSURL的区别(读取文件以及写入文件)
  7. R语言︱文本(字符串)处理与正则表达式
  8. Java中子类对象初始化的过程
  9. bzoj1233 单调队列优化dp
  10. Tomcat的日志分割三种方法
  11. 虹软人脸识别 arcface2.0 安卓版本
  12. Python error: Microsoft Visual C++ 9.0 is required 解决方案
  13. internal in C#
  14. [可能没有默认的字体]Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename...
  15. test20181019 B君的第三题
  16. 关于easyui展示慢的Debug
  17. oracle 查询数据库中 有数据的表
  18. kvm虚拟机扩展磁盘空间
  19. django重写用户模型
  20. Java虚拟机(三):垃圾收集器

热门文章

  1. 如何让 linux unzip 命令 不输出结果
  2. BZOJ 4823: [Cqoi2017]老C的方块
  3. 关于C++随机函数
  4. SQLSERVER数据库置疑、可疑、脱机、单用户、紧急模式等的修复
  5. appium===Python+Appium环境部署教程
  6. linux环境下的GUN make学习笔记(一)
  7. git常用命令收集
  8. Android之BInder分析
  9. selenium TestNG基本注释和属性
  10. 基于percona-monitoring-plugins实现Zabbix的MySQL多端口自动发现监控