Network ping fails under centos7

王林
Release: 2020-03-31 14:20:55
Original
6080 people have browsed it

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

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

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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!