Home >Operation and Maintenance >CentOS >What should I do if centos cannot access the Internet under vmware?

What should I do if centos cannot access the Internet under vmware?

王林
王林Original
2020-05-18 09:54:332519browse

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

What should I do if centos cannot access the Internet under vmware?

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

What should I do if centos cannot access the Internet under vmware?

At this time, enter the vim editing content and set ONBOOT=no. Change to ONBOOT=yes, then save and exit

What should I do if centos cannot access the Internet under vmware?

Enter the command service network restart in the terminal to restart the network service.

Command:

service network restart

What should I do if centos cannot access the Internet under vmware?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn