Home >Operation and Maintenance >CentOS >Unable to ping the external network under centos7

Unable to ping the external network under centos7

王林
王林Original
2020-04-03 09:56:415280browse

Unable to ping the external network under centos7

Problem:

After the installation of the CentOS system was completed, I found that the system did not automatically assign an IP, and the external network was not accessible.

Cause:

This is because the network card is not activated. Just edit the ifcfg_ens33 file to activate it.

Solution:

1. Enter the network card configuration directory

cd /etc/sysconfig/network-scripts/

2. Open the network card configuration file

vi ifcfg-ens33

Unable to ping the external network under centos7

3. Change ONBOOT=no to ONBOOT=yes, save and exit.

Unable to ping the external network under centos7

4. Restart the network service

service network restart

Recommended related tutorials: centos tutorial

The above is the detailed content of Unable to ping the external network under centos7. 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