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 :
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.
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.