Home>Article>Operation and Maintenance> centos cannot ping the network

centos cannot ping the network

王林
王林 Original
2020-03-18 17:14:59 3583browse

centos cannot ping the network

Cause:

DNS is not set, so the ping from the external network cannot be pinged.

Solution:

(Recommended tutorial:centos usage tutorial)

1. Add DNS to the file /etc/resolv.conf

search localdomain nameserver 192.168.0.1 nameserver 61.139.2.69

2. Restart the network card service

systemctl restart network.service

The ping was successful.

Recommended related video tutorials:linux video tutorial

The above is the detailed content of centos cannot ping the network. 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
Previous article:centos cannot play video Next article:centos cannot play video