Skip to content

ping6 command in Linux

The Linux ping6 command is used to test the connectivity between devices using IPv6 addresses. It sends ICMPv6 Echo Request packets to a specified destination and waits for a response. This command is helpful in troubleshooting network connectivity issues specifically related to IPv6 addresses. By analyzing the ping6 output, users can determine if a device is reachable over an IPv6 network and measure the round-trip time for packets to reach their destination. It is an essential tool for network administrators and users working with IPv6 protocols.

Terminal window
ping6 [option] [target]
OptionDescription
-cStop after sending count number of packets
-fFlood ping (send packets as fast as possible)
-nNo hostname lookup
-qQuiet output, only display summary
-tSet the Time to Live (TTL) value
-vVerbose output
ParameterDescription
targetHostname or IP address to ping
Terminal window
ping6 example.com

Sends ICMPv6 echo requests to “example.com” to test network connectivity.

Terminal window
ping6 -c 5 example.com

Sends ICMPv6 echo requests to “example.com” with a limit of 5 packets.

Terminal window
ping6 -i 2 example.com

Sends ICMPv6 echo requests to “example.com” with a 2-second interval between packets.

Terminal window
ping6 -I eth0 example.com

Sends ICMPv6 echo requests to “example.com” using the “eth0” network interface.

Terminal window
ping6 2001:db8::1

Pings the specific IPv6 address “2001:db8::1” to test network connectivity.

Terminal window
ping6 -f example.com

Pings “example.com” using flood mode to send packets as fast as possible.

Terminal window
ping6 -n example.com

Sends ICMPv6 echo requests to “example.com” without performing DNS resolution.

Terminal window
ping6 -v example.com

Prints verbose output while pinging “example.com”.

To use the ping6 command in Linux, execute the following command:

Terminal window
ping6

How do I specify the number of packets to send with ping6?

Section titled “How do I specify the number of packets to send with ping6?”

To specify the number of packets to send with ping6, use the -c option followed by the desired packet count. For example:

Terminal window
ping6 -c 5 example.com

How do I set the interval between ping6 packets?

Section titled “How do I set the interval between ping6 packets?”

To set the interval between ping6 packets, use the -i option followed by the time interval in seconds. For example:

Terminal window
ping6 -i 1 example.com

How do I increase the timeout for ping6 responses?

Section titled “How do I increase the timeout for ping6 responses?”

To increase the timeout for ping6 responses, use the -W option followed by the timeout value in seconds. For example:

Terminal window
ping6 -W 5 example.com

How do I perform continuous pinging with ping6?

Section titled “How do I perform continuous pinging with ping6?”

To perform continuous pinging with ping6, use the -c option with a large number or no specified count. For example:

Terminal window
ping6 -c example.com

How do I limit the number of hops in ping6?

Section titled “How do I limit the number of hops in ping6?”

To limit the number of hops in ping6, use the -m option followed by the maximum hop count. For example:

Terminal window
ping6 -m 10 example.com

How do I increase the size of the ICMPv6 echo request packets in ping6?

Section titled “How do I increase the size of the ICMPv6 echo request packets in ping6?”

To increase the size of the ICMPv6 echo request packets in ping6, use the -s option followed by the desired packet size in bytes. For example:

Terminal window
ping6 -s 100 example.com

How do I resolve IP addresses to hostnames in ping6?

Section titled “How do I resolve IP addresses to hostnames in ping6?”

To resolve IP addresses to hostnames in ping6, use the -n option to disable hostname resolution. For example:

Terminal window
ping6 -n example.com

How do I enable verbose output with ping6?

Section titled “How do I enable verbose output with ping6?”

To enable verbose output with ping6, use the -v option. For example:

Terminal window
ping6 -v example.com
  • Troubleshooting network connectivity issues
  • Checking the reachability of a remote host over IPv6
  • Verifying network configuration for IPv6 addresses
  • Testing the round-trip time between a source and destination over IPv6
  • Diagnosing packet loss in an IPv6 network
  • Checking the status of IPv6-capable devices on the network