What if you can't connect to the Internet after Centos7 installation?
This article mainly shows you "what to do if you can't connect to the Internet after Centos7 installation". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "what to do if you can't connect to the Internet after Centos7 installation".
After installing centos7 in the VMware virtual machine today, it is found that centos is unnetworked by default, and the networking modification settings are as follows:
Enter the directory:
Cd / etc/sysconfig/network-scripts/
Find the name of the network card configuration file, which can be viewed through the ifconfig command. As shown in the figure below, the network card name of my virtual machine is ens33
Use the ls command to view the Nic configuration file name:
Edit the last line of the ifcfg-ens33 file and change ONBOOT=no to ONBOOT=yes, as shown below:
Finally, enter: wq to save and exit, and then restart network:
Service network restart
Done, at this time the virtual machine also has ip on the Internet.
These are all the contents of the article "what to do if you can't connect to the Internet after Centos7 installation". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!