ubuntu更换主机主板后,不能开启网卡,ifup eth0命令产生错误

由于主板损坏,今天换了一块主板,却发现网络无法连通,使用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地址的缓存所造成的。使用下列命令删除缓存文件。
sudo rm /etc/udev/rules.d/70-persistent-net.rules

重启计算机
参考文献 http://hi.baidu.com/rhca/blog/item/97df49a78ba03691d04358f7.html

你可能感兴趣的:(java,.net,Blog,ubuntu,UP)