What should I do if I cannot access the Internet after installing centos7 on VmWare? The solution is shared below for your reference, the specific content is as follows
systemctl stop firewalld.service #shut down
systemctl restart firewalld.service #Reboot
Configure the virtual machine as a static IP, enter the network card editing directory: cd /etc/sysconfig/network-scripts
Edit the network card, vi ifcfg-ens33, yours may be ensxxx, depending on your machine, modify or add the six configuration items in the figure below, among which GATEWAY and DNS1 are generated by the third step.
ifdown ens33
ifup ens33
service network restart
The above is the whole content of this article, I hope it will be helpful to everyone's study.