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

Complete steps for Docker to pull images

1. Docker pull pulls the image When using $ docke...

Implement full screen and monitor exit full screen in Vue

Table of contents Preface: Implementation steps: ...

Detailed explanation of MySQL covering index

concept If the index contains all the data that m...

Reasons why MySQL kill cannot kill threads

Table of contents background Problem Description ...

Transplanting the mkfs.vfat command in busybox under Linux system

In order to extend the disk life for storing audi...

Super detailed MySQL8.0.22 installation and configuration tutorial

Hello everyone, today we are going to learn about...

Essential knowledge for web development interviews and written tests (must read)

The difference between inline elements and block-...

JavaScript implements the nine-grid mobile puzzle game

This article shares the specific code for JavaScr...

MySQL permission control details analysis

Table of contents 1. Global level 2. Database lev...

How to use VLAN tagged Ethernet card in CentOS/RHEL system

In some scenarios, we want to assign multiple IPs...

How to expand the disk partition for centos system

Problem/failure/scenario/requirement The hard dis...

The whole process record of introducing Vant framework into WeChat applet

Preface Sometimes I feel that the native UI of We...

How to use bar charts in Vue and modify the configuration yourself

1. Import echart in HTML file <!-- Import echa...

Analysis of Linux kernel scheduler source code initialization

Table of contents 1. Introduction 2. Basic Concep...

Solution for forgetting the root password of MySQL5.7 under Windows 8.1

【background】 I encountered a very embarrassing th...