Home >Operation and Maintenance >CentOS >What to do if the host cannot be pinged under centos

What to do if the host cannot be pinged under centos

王林
王林Original
2020-03-26 16:48:286402browse

What to do if the host cannot be pinged under centos

1. Enter the directory of the IP configuration file

cd /etc/sysconfig/network-scripts/

Enter the configuration file vi ifcfg-ens33

What to do if the host cannot be pinged under centos

corresponding to the network card name

(Recommended tutorial: centos tutorial)

Modify the following picture:

What to do if the host cannot be pinged under centos

2. Restart the network card

Command:

service network restart

What to do if the host cannot be pinged under centos

## Recommended related video tutorials:

linux video tutorial

The above is the detailed content of What to do if the host cannot be pinged under centos. 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