I initially installed VMware encountered not access to the network, according to the online configuration method can not be resolved. And then I felt like it might have something to do with the system, I installed CentOS, and then I tried to install it on the VirtualBox to see what was wrong.
After installing CentOS with VirtualBox, the network setup is also configured, but can not connect the network, ping host IP display network unreachable. Same as the problems encountered with VMware. I think 80% is related to the system because I did not encounter this problem before installing other systems. Then I refer to the Baidu experience address. http://jingyan.baidu.com/article/456c463b4a98460a5931444c.html, changes the file
/etc/sysconfig/network-scripts/ifcfg-eth0
Change Onboot=no to Onboot=yes
Then the service network restart, may be prompted to use Systemctl, after restarting the network is OK
Go back to solving the same problem on VMware. After modifying the file, the network is unreachable, not resolved.
Now look at the IP is like this
When I re-viewed the file, I suddenly found that I was just copying it when I edited it, and I saved it without modification (crying
After the modification, I look at the IP, at this time the IP again to see there is
Correct modified content of the file
At this point, the configuration is basically the default
VMware and VirtualBox installation CENTOS7 Connection Network unreachable Issue resolution notes (network connection)