Hello Linux Geeksters. 2ping is an open source command line interface ping tool written in perl. It uses 3 way pings SYN/ACK, TCP SYN and ACK, to determine the direction of the packet loss, comparing a 2ping client and a 2ping listener. Ping is a popular tool, for diagnosticating if the internet connection works, or if the DNS solves any hosts.
After the listener started, start the 2ping client and connect it to the listener, in order to ping them each other and display network statistics. If there are lost packages, 2pings waits some seconds and next compares notes between the two endpoints, in order to find out the direction of the package loss. To kill the process, use Ctrl – C . (^C)
In this article I will show you how to install 2ping on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Linux Mint 16 Petra, Linux Mint 15 Olivia, Linux Mint 14 Nadia, Linux Mint 13 Maya, Debian Sid, Debian Wheezy and Debian Squeeze.
How to install 2Ping:
To install 2ping on Ubuntu, Linux Mint and Debian, do:
$ sudo apt-get install 2ping
How to use 2Ping:
Ping the host you want to listen:
$ 2ping --listen google.com
Ping your local host or IP:
$ 2ping localhost