List of content you will read in this article:
One of the ping command’s most critical features is troubleshooting, testing, and diagnosing the network for all potential 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. This leads to the loss of packets, and you can check what data has been lost using the ping command.
Not only this, but 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 CenOS
First, log in to your Linux server using the SSH as the root user for installing the ping command. 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 the root user. Then start downloading the iputil rpm from the CentOS website with the help of the 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 to remove the iputil to terminate 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 with the right credentials.
You can use the simple commands when using the ping command to check various aspects of the system’s connection and communication 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.
People also read: