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

A brief analysis of the differences between undo, redo and binlog in MySQL

Table of contents Preface 【undo log】 【redo log】 【...

js to implement the snake game with comments

This article example shares the specific code of ...

Detailed explanation of JSON.parse and JSON.stringify usage

Table of contents JSON.parse JSON.parse Syntax re...

Implementation of tomcat image created with dockerfile based on alpine

1. Download the alpine image [root@docker43 ~]# d...

Reasons and solutions for slow MySQL query stuck in sending data

Because I wrote a Python program and intensively ...

Vue3.0+vite2 implements dynamic asynchronous component lazy loading

Table of contents Create a Vite project Creating ...

Zabbix WEB monitoring implementation process diagram

Take zabbix's own WEB interface as an example...

How to make a website look taller and more designed

“How to make a website look high-end? Or more des...

Examples of MySQL and Python interaction

Table of contents 1. Prepare data Create a data t...

How to view version information in Linux

How to view version information under Linux, incl...

Problems with installing mysql and mysql.sock under linux

Recently, I encountered many problems when instal...

How to click on the a tag to pop up the input file upload dialog box

html Copy code The code is as follows: <SPAN cl...

Element dynamic routing breadcrumbs implementation example

To master: localStorage, component encapsulation ...

An article to help you understand Js inheritance and prototype chain

Table of contents Inheritance and prototype chain...