Linux network configuration - the most detailed network
Follow the operation step by step
Find Network and Internet in Settings
-
Click on Network and Sharing Center
-
Change adapter settings
-
enable
-
Check whether the service is enabled on windows (usually it is automatically enabled, just in case check it)
as follows: Start these three services -
Set the virtual machine network adapter - NAT mode
-
Click on Virtual Network Editor
-
Enter the Linux system to start configuration
-
Enter the root account and open the terminal
-
input the command
ifconfig
-
input the command
vim /etc/sysconfig/network-scripts/ifcfg-ens33
-
Modify the file and save
-
Restart the network service
and enter the commandservice network restart
-
-
Check if the connection is successful
ping www.baidu.com
Once you get here, you have successfully connected to the Internet! ! ! ! !