Ping command is basically working on sending an Internet Control Message Protocol (ICMP) echo request packets to the target host and waiting for an ICMP response. To enable the PING refer to the following URL and make sure that you have logged in as a root user.
echo “0” >> /proc/sys/net/ipv4/icmp_echo_ignore_all
Many server provider and host disabled the PING command to secure the server, refer to the following command to disable the PING command.
echo “1” >> /proc/sys/net/ipv4/icmp_echo_ignore_all
To collect more information about PING, refer to the following URL.