The centos installed on the vmwarevm cannot access the Internet today. Use the service network restart prompt.
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: Error: no suitable device found: no device found for connection 'System eth0'. [failed]
Prompt with ifconfig eth0 up
Eth0: Unknown interface: no such device
Then modify the/etc/sysconfig/network-script/ifcfg-eth0 file, no problem found. After studying for a long time, I finally solved this problem.
Solution:
1. Delete the/etc/udev/rules. d/70-persistent-net.rules file and restart the system.
2. If the above does not work, check whether the hwaddr in the ifcfg-eth0 file is correct and change it to the correct hwaddr.
I solve the problem by using these two methods.
Author: frotian tribe address: http://www.frostsky.com/2012/07/no-device-found-for-connection/
The author and original source must be indicated in the form of links when all copyrights are reprinted!