Home  >  Article  >  Operation and Maintenance  >  Network ping fails under centos7

Network ping fails under centos7

王林
王林Original
2020-03-31 14:20:556118browse

Network ping fails under centos7

Foreword:

centos7 no longer supports the ifconfig command, and has replaced it with the ip addr command.

Solution:

Edit the ifcfg_ens33 file to activate the network card

cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33

Network ping fails under centos7

(Recommended tutorial: centos tutorial)

Network ping fails under centos7

Change ONBOOT=no to ONBOOT=yes, save and exit, and then execute the command

service network restart

to restart the network service.

Network ping fails under centos7

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of Network ping fails 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