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

Unable to ping the external network under centos7

王林
Release: 2020-04-03 09:56:41
Original
5276 people have browsed it

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/
Copy after login

2. Open the network card configuration file

vi ifcfg-ens33
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template