Solution to Ubuntu cannot connect to the network

Solution to Ubuntu cannot connect to the network

Effective solution for Ubuntu in virtual machine not being able to connect to the network:

1. Ubuntu network settings:

Click [System Settings]-->[Network]-->[Wired]-->[Options…] in sequence, as shown in the following figure:

Select [General] in turn, check the radio button as shown in the figure below, and finally click [Save], as shown in the figure below:

Select [IPv4 Settings] in turn, select [Automatic (DHCP)] in the following Method, and finally click [Save], as shown in the following figure:

2. Restore the default settings of the virtual network (in disconnected state):

Click [Edit]-->[Virtual Network Editor…] in sequence, as shown in the following figure:

Click [RestoreDefault], as shown below:

3. Set the virtual machine Internet access method to NAT:

When the virtual machine is powered off, double-click [Network Adapter], as shown in the following figure:

Check [Connect at startup], select [NAT mode], and finally click [OK] as shown below:

4. Witness the results:

After the above settings, first connect to the Internet on the host machine, then start the virtual machine Ubuntu. You don’t need to do anything, but when you see the icon shown in the upper right corner, it means that the virtual machine is able to connect to the Internet. You can directly open Firefox to surf 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 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
  • Solution to the problem of being unable to access the Internet after Ubuntu restarts in VMWare
  • 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

<<:  MySQL paging performance exploration

>>:  A detailed explanation of how React Fiber works

Recommend

Div exceeds hidden text and hides the CSS code beyond the div part

Before hiding: After hiding: CSS: Copy code The co...

Steps to package and release the Vue project

Table of contents 1. Transition from development ...

Detailed example of MySQL (5.6 and below) parsing JSON

MySQL (5.6 and below) parses json #json parsing f...

MySQL turns off password strength verification

About password strength verification: [root@mysql...

Develop a vue component that encapsulates iframe

Table of contents 1. Component Introduction 2. Co...

MySQL5.6.31 winx64.zip installation and configuration tutorial

#1. Download # #2. Unzip to local and modify nece...

Example code for implementing dynamic column filtering in vue+element table

Requirement: When displaying data in a list, ther...

Example code for using @media in CSS3 to achieve web page adaptation

Nowadays, the screen resolution of computer monit...

Implementing a simple Christmas game with JavaScript

Table of contents Preface Achieve results Code CS...

8 JS reduce usage examples and reduce operation methods

reduce method is an array iteration method. Unlik...

4 Practical Tips for Web Page Design

Related articles: 9 practical tips for creating we...

MySQL partitions existing tables in the data table

Table of contents How to operate Operation proces...

How to Develop a Progressive Web App (PWA)

Table of contents Overview Require URL of the app...

How to create https using nginx and Tencent Cloud free certificate

I have been studying how to get https. Recently I...

Steps to use ORM to add data in MySQL

【Foreword】 If you want to use ORM to operate data...