Solve the problem that linux (Ubuntu) cannot connect to the network after manually setting IP

To manually set the IP, you must write the configuration as required

1. How to configure IP address, subnet mask and gateway

 Click on Virtual Network Editor

Click on NAT Settings

Copy the gateway and subnet mask; the configured IP address must be within the network segment of the subnet IP;

 

 2. How to configure DNS

You can enter the command nmcli dev show in the dynamic IP mode (DHCP) to view DNS 

 

 

Guess you like

Origin blog.csdn.net/qq_61672548/article/details/127144057
Recommended