Eth0: ERROR while getting interface flags: No such device

  

Experiment with virtual machine, only one system is installed, the rest are copy, then modify the name of the network card, from ehh1 to eth0, but when the network card is opened < Br>

eth0: ERROR while getting interface flags: No such device

Problem Cause: The MAC address is cached, so the MAC configured by eth0 cannot be found, so No such device

< Br>

Method 1:

#ifconfig -a

There is no eth0 information at this time, but there is eth1

The solution is: put the name back Go back, also changed to eth1


Method 2: Delete the cache


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


But you need to restart the machine, restart is not working!

Copyright © Windows knowledge All Rights Reserved