本来本机上有个UBUNTU8.04的虚拟机跑得很欢,但是拷贝到另外一个机器上的时候
ping localhost没有问题,但是ping 192.168.1.1的网关就不行了
然后使用 ifup eth0出现如下错误:
eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
根据网上搜索的结果,这个错误是由mark地址的缓存所造成的。使用下列命令删除缓存文件。
做如下操作
rm /etc/udev/rules.d/70-persistent-net.rules
然后重启电脑,问题解决。