Home >Operation and Maintenance >CentOS >What should I do if centos cannot access the Internet under vmware?
Environment:
centos7
The solution is as follows:
First enter /etc/sysconfig/network-
Command in the scripts/ directory:
cd /etc/sysconfig/network-scripts
Then check the files in the directory and there is an ifcfg-ens33, usually this is it, some people may be For other numbers, open them for editing through the vim command:
Command:
vim ifcfg-ens33
At this time, enter the vim editing content and set ONBOOT=no. Change to ONBOOT=yes, then save and exit
Enter the command service network restart in the terminal to restart the network service.
Command:
service network restart
Recommended tutorial: centos tutorial
The above is the detailed content of What should I do if centos cannot access the Internet under vmware?. For more information, please follow other related articles on the PHP Chinese website!