问题:重装了操作系统和VirtualBox,在使用原有的Debian VDI无法启用网络。报错如下:
- [boilerplate omitted]
- SIOCSIFADDR: No such device
- eth0: ERROR while getting interface flags: No such device
- eth0: ERROR while getting interface flags: No such device
- Bind socket to interface: No such device
- Failed to bring up eth0.
解决:
1. 编辑/etc/udev/rules.d/75-persistent-net-generator.rules文件
2. 加入以下两行
# ignore VirtualBox virtual interfaces
ATTR{address}=="08:00:27:*", GOTO="persistent_net_generator_end"
3. 删除rm -f /etc/udev/rules.d/70-persistent-net.rules文件
4. 重启
步骤:
- cadenwu@cadenwu:~$ vi /etc/udev/rules.d/75-persistent-net-generator.rules
- cadenwu@cadenwu:~$ rm -f /etc/udev/rules.d/70-persistent-cd.rules
阅读(3822) | 评论(0) | 转发(0) |