Solution to the problem of being unable to access the Internet after Ubuntu restarts in VMWare

Solution to the problem of being unable to access the Internet after Ubuntu restarts in VMWare

How to solve the problem of being unable to access the Internet after Ubuntu restarts in VMWare, as follows

Reason: No static DNS is set, resulting in the previously set DNS being deleted every time the system restarts.

Unable to access the Internet after restart:

1. Check DNS:

這里寫圖片描述

2. Found that the previously configured DNS is gone

這里寫圖片描述

Solution:

(1) Reset DNS

Order:

這里寫圖片描述

Add nameserver 220.115.187.250 (local physical host DNS)

這里寫圖片描述

**(2) Add static DNS

Order:**


Add dns-nameserver 220.115.187.250 (local physical host DNS)

這里寫圖片描述

Save and it will take effect, and there is no problem restarting.

(3) Successfully access the Internet

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:
  • Solution to Ubuntu 18.04 not being able to connect to the network in VMware virtual machine
  • Solution to Ubuntu cannot connect to the network
  • Solution to Ubuntu not being able to connect to the Internet
  • Solution to the problem that Ubuntu cannot connect to the Internet in the virtual machine
  • Solution to the problem that the virtual machine Ubuntu 16.04 cannot connect to the Internet
  • Introduction to Ubuntu PostgreSQL installation and configuration
  • Ubuntu16.04 builds php5.6 web server environment
  • How to build nfs service in ubuntu16.04
  • How to modify the time zone and time in Ubuntu system
  • Detailed configuration of wireless network card under Ubuntu Server

<<:  Mini Program to Implement Slider Effect

>>:  Detailed explanation of the Chinese garbled characters problem in MySQL database

Recommend

Beginner's guide to building a website ⑥: Detailed usage of FlashFXP

Today I will introduce the most basic functions of...

Vue implements table paging function

This article example shares the specific code of ...

JavaScript BOM location object + navigator object + history object

Table of contents 1. Location Object 1. URL 2. Pr...

Practice of using SuperMap in Vue

Table of contents Preface Related Materials Vue p...

The textarea tag cannot be resized and cannot be dragged with the mouse

The textarea tag size is immutable Copy code The c...

Basic understanding and use of HTML select option

Detailed explanation of HTML (select option) in ja...

Implementation of MYSQL (telephone number, ID card) data desensitization

1. Data desensitization explanation In daily deve...

iframe src assignment problem (server side)

I encountered this problem today. I reassigned the...

Difference between var and let in JavaScript

Table of contents 1. Scopes are expressed in diff...

Introduction to installing and configuring JDK under CentOS system

Table of contents Preface Check and uninstall Ope...

How to handle forgotten passwords in Windows Server 2008 R2

What to do if you forget Windows Server 2008R2 So...

How to use Nginx to carry rtmp live server

This time we set up an rtmp live broadcast server...

WeChat applet custom tabBar step record

Table of contents 1. Introduction 2. Customize ta...

Create a movable stack widget function using flutter

This post focuses on a super secret Flutter proje...