HAProxy Enterprise Documentation 13.0

Troubleshooting Using Ping

Pinging ensures that an IP address is reachable through the network.

From the Web user interface (WUI)

  1. Open the DiagTools tab.

  2. From the Select list, choose ping (source*, destination, ignored).

  3. Enter the following parameters:

    • source*: (optional) source IP to use

    • destination: the destination IP to reach

  4. Click Run.

From the command line interface (CLI)

  1. Get root rights by typing root.

  2. Run ping -n -c 5 [-s <source>] <destination>.

Output example: Successful

PING 10.0.33.101 (10.0.33.101) 56(84) bytes of data.
64 bytes from 10.0.33.101: icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from 10.0.33.101: icmp_seq=2 ttl=64 time=0.030 ms
64 bytes from 10.0.33.101: icmp_seq=3 ttl=64 time=0.024 ms
64 bytes from 10.0.33.101: icmp_seq=4 ttl=64 time=0.030 ms
64 bytes from 10.0.33.101: icmp_seq=5 ttl=64 time=0.036 ms
--- 10.0.33.101 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4008ms
rtt min/avg/max/mdev = 0.024/0.034/0.051/0.009 ms

Output example: Unsuccessful

PING 10.0.33.101 (10.0.33.101) 56(84) bytes of data.
--- 10.0.33.101 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms

Next up

Troubleshooting Using Ping