Solution to the problem of not being able to access the Internet when installing centos7 with VmWare

Solution to the problem of not being able to access the Internet when installing centos7 with VmWare

What to do if VmWare cannot access the Internet when installing centos7? Here is a solution for your reference. The specific contents are as follows

1. Turn off the firewall

systemctl stop firewalld.service #Shutdownsystemctl restart firewalld.service #Restart

2. Virtual Machine -> Settings -> Network Adapter -> Select NAT Mode

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

4. Configure the DNS of virtual network vmnet8

5. Configure the virtual machine to a static IP and enter the network card editing directory: cd /etc/sysconfig/network-scripts

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

7. Restart the network card

ifdown ens33
ifup ens33
service network restart

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Solve the problem that the CentOS7 virtual machine cannot access the Internet and set up the CentOS7 virtual machine to use a static IP to access the Internet
  • CentOS7 network configuration under VMware virtual machine (host wireless Internet access)
  • CentOS 7 cannot access the Internet after modifying the network card

<<:  Nest.js authorization verification method example

>>:  Commonplace talk about the usage of MYSQL pattern matching REGEXP and like

Recommend

Introduction and use of Javascript generator

What is a generator? A generator is some code tha...

JavaScript to achieve dynamic table effect

This article shares the specific code for JavaScr...

How to deploy nodejs service using Dockerfile

Initialize Dockerfile Assuming our project is nam...

Vue implements calling PC camera to take photos in real time

Vue calls the PC camera to take pictures in real ...

Detailed explanation of root directory settings in nginx.conf

There are always some problems when configuring n...

Several CSS3 tag shorthands (recommended)

border-radius: CSS3 rounded corners Syntax: borde...

Summary of Css methods for clearing floats

Float is often used in web page layout, but the f...

Teach you how to deploy Vue project with Docker

1.Write in front: As a lightweight virtualization...

MySQL independent index and joint index selection

There is often a lack of understanding of multi-c...

Some findings and thoughts about iframe

This story starts with an unexpected discovery tod...

Use of MySQL query rewrite plugin

Query Rewrite Plugin As of MySQL 5.7.6, MySQL Ser...

MySQL 8.0 can now handle JSON

Table of contents 1. Brief Overview 2. JSON basic...

CSS Transition expands and collapses elements by changing the Height

A common development need is that we want to coll...

Summary of using MySQL online DDL gh-ost

background: As a DBA, most of the DDL changes of ...