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

View the port number occupied by the process in Linux

For Linux system administrators, it is crucial to...

Analysis of the principles of Mysql dirty page flush and shrinking table space

mysql dirty pages Due to the WAL mechanism, when ...

Vue backend management system implementation of paging function example

This article mainly introduces the implementation...

Vue implements file upload and download functions

This article example shares the specific code of ...

Introduction to CSS3 color value RGBA and gradient color usage

Before CSS3, gradient images could only be used a...

Deployment and Chinese translation of the docker visualization tool Portainer

#docker search #docker pull portainer 1. Download...

Summary of Docker Data Storage

Before reading this article, I hope you have a ba...

JavaScript timer to achieve limited time flash sale function

This article shares the specific code of JavaScri...

Five ways to traverse JavaScript arrays

Table of contents 1. for loop: basic and simple 2...

Detailed example of IOS database upgrade data migration

Detailed example of IOS database upgrade data mig...

Vue implements simple production of counter

This article example shares the simple implementa...

Examples and comparison of 3 methods for deduplication of JS object arrays

Table of contents 1. Comparison of data before an...

CocosCreator general framework design resource management

Table of contents Problems with resource manageme...

JavaScript canvas text clock

This article example shares the specific code of ...