eth0: ERROR while getting interface flags: No such device
2024-08-28 15:20:25
出现这个问题有两种原因:
- 虚拟机设置中没有添加对应的网卡
- 更改了虚拟机中网卡的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
最新文章
- Eclipse的python插件安装
- select XXX into 和 Insert into XXX select
- leetcode面试准备:Triangle
- 一个Highcharts的例子
- java构造方法的不同
- IOS开发-UI学习-NSBundle和NSURL的区别(读取文件以及写入文件)
- R语言︱文本(字符串)处理与正则表达式
- Java中子类对象初始化的过程
- bzoj1233 单调队列优化dp
- Tomcat的日志分割三种方法
- 虹软人脸识别 arcface2.0 安卓版本
- Python error: Microsoft Visual C++ 9.0 is required 解决方案
- internal in C#
- [可能没有默认的字体]Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename...
- test20181019 B君的第三题
- 关于easyui展示慢的Debug
- oracle 查询数据库中 有数据的表
- kvm虚拟机扩展磁盘空间
- django重写用户模型
- Java虚拟机(三):垃圾收集器
热门文章
- 如何让 linux unzip 命令 不输出结果
- BZOJ 4823: [Cqoi2017]老C的方块
- 关于C++随机函数
- SQLSERVER数据库置疑、可疑、脱机、单用户、紧急模式等的修复
- appium===Python+Appium环境部署教程
- linux环境下的GUN make学习笔记(一)
- git常用命令收集
- Android之BInder分析
- selenium TestNG基本注释和属性
- 基于percona-monitoring-plugins实现Zabbix的MySQL多端口自动发现监控