en
  English
Phone :  +370 (5) 204-1903
Email: sales@1gbits.com
  1. Dedicated server
  2. Blog
  3. How To Disable Ping in CentOS [Disable Ping Command in CentOS]

How To Disable Ping in CentOS [Disable Ping Command in CentOS]

Linux is an open-source operating system based on kernel and provides various distributions. CentOS is one of them and here, we are trying to remove the ping command from CentOS 8. Using the various Linux distributions, you can handle the complete system’s tasks with just the command line interface. It comes with an interactive command line for running various commands for completing tasks. Among various commands, we are considering the ping command and how it is important in troubleshooting the network-related issues within seconds. If you are a network administrator then you must understand the importance of the use of the ping command.

Linux Tutorial Sep 07, 21 by Nisal N 3 min Read
How To Disable Ping in CentOS [Disable Ping Command in CentOS]

One of the most important features of the ping command is to troubleshoot, test, and diagnose the network for all probable connectivity issues. If there is any packet loss during the package transfer, you will also be able to check this. Using this command, you can send the ICMP packages continuously over the network until you get any interruption during the transmission. Thus, leading to the loss of packets and you can check what data has been lost using the ping command.

Not only this, the ping command also allows you to check if the destination IP address is active or not. If there is any delay in sending the request and receiving the response, it will detect it. You can use the ping command as part of the iputil package, which can be installed on the CentOS 8 system using the rpm or yum commands.

In this article, you will know how you can install an iputil package for using the ping command and how you can disable the ping command.

Installing ping command in centos

For installing the ping command, first, log in to your Linux server using the SSH as the root user. Then you need to install the package required to use the ping command. So we will install the iputils package via the yum command. Then enter “y” and hit enter. Then you can ping the required IP address to check its status.

 

Getting iputil rpm on CentOS 8

For this, first, log into the CentOS8 server using root user. Then start downloading the iputil rpm from the CentOS website with the help of wget command. Then install the iputil package using the yum or rpm command.

How to ping in CentOS

to execute the ping command in centos you can run the command below :

ping 4.2.2.2

Disabling the ping command

For this, you must log in to the CenOS 8 server with the root user. Then run the yum command with the removing the iputil in order to remove the ping command. Then you need to enter “y” to confirm the deletion of the package.

 

Conclusion 

There is no doubt about the usage of the ping command from the network administrator. You should have root access in order to use the ping command. You can also run the ping command on a remote server having the right credentials for it. 

You can use the simple commands for using the ping command and to check various aspects of the system being connected and communicating over the network. In this article, we have focused on how you can install and disable the ping command using the iputil package on the CentOS 8 system.

author img

Nisal N

Computers has always fascinated me since I was a kid and here we are. I love travelling for 2 reasons: the first one to see a new part of the world and second (the most important one) to experience the rich culture hidden among the country and people. I'm pretty good at cooking but very poor when it comes to baking.

Leave A Comment