Home > Article > Operation and Maintenance > Linux cannot access the Internet
##1. Linux network settings
1. Click [System]-->[Preferences]-->[Network Connections], as shown in the figure below: 2. Click [Wired]-->[System eth0]-->[Edit], as shown in the figure below. Display: 3. Check [Connect automaticallylly], then click [IPv4 Settings], select [Automatic (DHCP)] in the Method below, and finally click [Apply] ], as shown in the figure below:2. Restore the default settings of the virtual network
1. Click [Edit] - ->[Virtual Network Editor], as shown in the figure below: 2. Click [Restore Default Settings], as shown in the figure below:3. Set the virtual machine Internet access method to NAT
#1. When the virtual machine is shut down, double-click [Network Adapter], as shown in the following figure: 2. Check [Connect at startup], select [NAT mode], and finally click [OK] as shown below:Recommended tutorial:
The above is the detailed content of Linux cannot access the Internet. For more information, please follow other related articles on the PHP Chinese website!