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

centos cannot ping the network

王林
Release: 2020-03-18 17:14:59
Original
3726 people have browsed it

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

2. Restart the network card service

systemctl restart network.service
Copy after login

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!

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