How to solve the problem of not being able to access the Internet after installing centos7 on VmWare

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

  1. Turn off the firewall
systemctl stop firewalld.service #shut down
systemctl restart firewalld.service #Reboot
  1. Virtual machine->Settings->Network adapter->Select NAT mode

  1. Edit -> Virtual Network Editor -> Add Network -> Vmnet8 (DHCP and NAT settings are both the default) -> OK

  1. Configure the dns of the virtual network vmnet8

  1. Configure the virtual machine as a static IP, enter the network card editing directory: cd /etc/sysconfig/network-scripts

  2. 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.

  1. Restart the network card
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.

Recommended Posts

How to solve the problem of not being able to access the Internet after installing centos7 on VmWare
Solve the problem of installing VMwareTools on Ubuntu 18.04
Solve the problem of installing Theano on Ubuntu19
How to fix the problem of missing system settings on Ubuntu 14.04
How to modify the hostname on CentOS 8
Analysis on the method of CentOS8 virtual machine to access Windows10 host folder
Solve the problem of convex hull based on python
Solve the problem of installing VMwareTools on Ubuntu 18.04
Solve the problem of installing Theano on Ubuntu19
The latest method of installing Mongodb on Ubuntu 16.04
How to fix the problem of missing system settings on Ubuntu 14.04
Install the CPU version of Caffe on Ubuntu
Turn off and turn on the firewall in ubuntu
Solve the problem of python compiling and installing ssl
The pits encountered when installing yii2 advanced on Ubuntu
Solve the problem of convex hull based on python
Detailed explanation of the remaining problem based on python (%)
How to solve the problem of not being able to access the Internet after installing centos7 on VmWare
How to install Centos operating system on VMware virtual machine
Tutorial diagram of installing CentOS 8 (1905) system on VMware virtual machine
How to set up the Nginx server configuration block on CentOS 8
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to Update to gcc4.9.x on Centos7
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install TeamViewer on CentOS 8
How to add swap on CentOS 7
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to disable SELinux on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8
How to install MongoDB on CentOS 8
How to increase swap space on CentOS 8
How to install Apache Maven on CentOS 8
How to install Apache Kafka on CentOS 7
[Graphic] How to install tomcat on centos
Centos 8.1.1911 solves the problem of yum reinstallation
R&D: How To Install Python 3 on CentOS 7
How to install GCC compiler on CentOS 7