After Centos7 is installed, you cannot connect to the Internet (switch to). After centos7 is installed
Centos 7 is successfully installed on the vmwarevm .. The vigorous routine yum update found that the centos system seems to have not been configured with the default Nic, and the feedback cannot be made online. After some research, we finally connected centos to the Internet. The method is as follows:
Enter the directory:
/Etc/sysconfig/network-scripts/
Use the ls command to view the NIC configuration file name (in CENTOS7, the NIC name appears to be a random number, so the NIC name of each machine is different)
Use vim (or vi to edit the file as needed)
Change ONBOOT = no in the last line to ONBOOT = yes,
Finally, enter: wq to save and exit, and then restart the network:
Service network restart
After testing, the network can be smoothly pulled