歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> eth0: ERROR while getting interface flags: No such device

eth0: ERROR while getting interface flags: No such device

日期:2017/3/2 10:02:25   编辑:關於Linux

用虛擬機做實驗,只裝了一個系統,其余都是copy的,之後修改了網卡名字,從ehh1到eth0,但是啟網卡的時候出現

eth0: ERROR while getting interface flags: No such device

問題原因:MAC地址緩存了,所以eth0配置的MAC找不到,所以No such device

方法1:

#ifconfig -a

此時沒有eth0的信息,倒是有eth1的

解決把方法是:把名字還該回去,還改為eth1

方法2:刪除緩存

rm etc/udev/rules.d/70-persistent-net.rules

但是需要重啟機子,restart是不起作用滴!

Copyright © Linux教程網 All Rights Reserved