LangStop
ping
Ready
Editor

Configuration

Send ICMP ECHO_REQUEST to network hosts

Safety Advisory

Flood ping (-f) can saturate links and requires root. Lowering the interval below 0.2 s also requires root. Pinging broadcast addresses (-b) may generate significant traffic.

Required
Flags & Options

Add flags from the picker below...

Tests

-c
Packet count

Stop after sending the specified number of ECHO_REQUEST packets (-c count).

-i
Interval (seconds)

Wait the specified number of seconds between sending each packet (default: 1 s). Values below 0.2 require root (-i interval).

-W
Timeout (seconds)

Time to wait for a response, in seconds (-W timeout).

-w
Deadline (seconds)

Specify a timeout in seconds before ping exits regardless of how many packets have been sent or received (-w deadline).

-l
Preload count

Send the specified number of packets as fast as possible before switching to normal mode. Requires root (-l preload).

-s
Packet size (bytes)

Specifies the number of data bytes to be sent (default: 56, which translates to 64 ICMP bytes with the header) (-s packetsize).

-M
MTU discovery

Select Path MTU Discovery strategy (-M pmtudisc_option).

-p
Pad pattern (hex)

Specify up to 16 pad bytes to fill the sent packet, as hex digits (-p pattern).

-I
Interface / source address

Set source interface (by name) or source address (-I interface).

-t
TTL

Set the IP Time To Live on outgoing packets (-t ttl).

-Q
QoS / TOS

Set Quality of Service-related bits in ICMP datagrams, as a hex value (-Q tos).

-4
Force IPv4

Use IPv4 only (-4).

-6
Force IPv6

Use IPv6 only (-6).

-q
Quiet

Quiet output; only display summary lines at startup and when finished (-q).

-v
Verbose

Verbose output — include ICMP packets that are not ECHO_RESPONSE (-v).

-f
Flood ping

Flood ping — send packets as fast as possible or 100 per second (requires root). Prints a . per sent packet and a backspace per received packet (-f).

-A
Adaptive ping

Adaptive ping — packet interval adapts to RTT so there is always one outstanding probe (-A).

-U
Print full user-to-user latency

Print full round-trip time even when receiving a response from a different host (-U).

-n
Numeric output

Do not look up symbolic names for host addresses (-n).

-r
Bypass routing tables

Bypass the normal routing tables and send directly to a host on an attached network (-r).

-b
Allow broadcast

Allow pinging a broadcast address (-b).

-D
Print timestamps

Print a UNIX timestamp before each line (-D).

-O
Report outstanding

Report outstanding ICMP ECHO reply before sending the next packet (-O).

-a
Audible ping

Audible ping — beep when a packet is received (-a).

Live Output

Command
ping

PRO TIP:Use -c 4 to limit to 4 packets so ping doesn't run indefinitely.

UTF-8
LangStop DevTools v1.0.0
;

Linux ping Command Builder (Online Tool + Complete Guide)

The Linux ping command is a fundamental networking tool used to test connectivity, latency, and packet loss between your system and a remote host. This interactive Ping Command Builder helps you generate accurate commands instantly for debugging and monitoring network performance.


🚀 What is the ping Command?

The ping command:

  • Sends ICMP Echo Request packets to a target host
  • Measures response time (latency)
  • Detects packet loss
  • Helps diagnose network issues

⚙️ Basic Syntax

ping [options] <host>

Example

ping google.com

🧠 How to Use This Ping Command Builder

This tool allows you to:

  • Enter a hostname or IP address
  • Configure advanced options
  • Generate a ready-to-use ping command

Workflow

  1. Enter target host (e.g., google.com, 8.8.8.8)
  2. Set optional parameters
  3. Copy the generated command
  4. Run in your terminal

🔧 Common ping Options

Limit Number of Packets

ping -c 4 google.com
  • -c → number of packets to send

Set Interval Between Packets

ping -i 2 google.com
  • -i → interval in seconds

Specify Packet Size

ping -s 100 google.com
  • -s → packet size in bytes

Continuous Ping

ping google.com
  • Runs until stopped (Ctrl + C)

Set Timeout

ping -W 2 google.com
  • -W → timeout in seconds

IPv4 / IPv6 Selection

ping -4 google.com
ping -6 google.com

📊 Understanding ping Output

Example output:

64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=14.2 ms

Key Metrics

  • icmp_seq → packet sequence number
  • ttl → time to live
  • time → latency (ms)

🧩 Common Use Cases

🌐 Network Connectivity Check

  • Verify if a host is reachable

⚡ Latency Testing

  • Measure response time to servers

📉 Packet Loss Detection

  • Identify unstable connections

🛠 Debugging Network Issues

  • Diagnose DNS or routing problems

⚡ Performance Tips

  • Use -c to avoid infinite ping
  • Combine with:
    • traceroute
    • netstat
    • curl
  • Use small intervals carefully (can flood network)

⚠️ Common Mistakes

  • Running infinite ping unintentionally
  • Misinterpreting latency spikes
  • Ignoring packet loss percentage
  • Using restricted ICMP environments (some servers block ping)

🔍 ping vs traceroute vs curl

Tool Purpose
ping Connectivity & latency
traceroute Network path analysis
curl HTTP request testing

❓ FAQ

What does ping do in Linux?

  • It checks if a host is reachable and measures latency.

Why is ping not working?

  • Possible reasons:
    • Firewall blocking ICMP
    • Network issues
    • Host is down

What is a good ping time?

  • < 20ms → excellent
  • 20–50ms → good
  • 100ms → slow

Can ping detect packet loss?

  • Yes, it reports percentage of lost packets.

🧠 Pro Tips

  • Use IP address to bypass DNS issues
  • Combine with scripts for monitoring
  • Use continuous ping for real-time debugging

🔗 Related Linux Commands

  • traceroute → trace network path
  • netstat → network statistics
  • ss → socket statistics

🏁 Summary

The Linux ping command is:

  • 🌐 Essential for networking
  • ⚡ Fast and lightweight
  • 🛠 Critical for debugging

Use this Ping Command Builder to generate accurate commands quickly and troubleshoot network issues efficiently.