LinuxCommandLibrary

ping6

sends ICMPv6 echo requests to IPv6 hosts

TLDR

Ping IPv6 address

$ ping6 [2001:db8::1]
copy
Ping hostname
$ ping6 [ipv6.example.com]
copy
Limit packet count
$ ping6 -c [5] [host]
copy
Set interval
$ ping6 -i [2] [host]
copy
Set packet size
$ ping6 -s [1000] [host]
copy
Flood ping
$ ping6 -f [host]
copy
Quiet output
$ ping6 -q -c [10] [host]
copy
Specify interface
$ ping6 -I [eth0] [fe80::1]
copy

SYNOPSIS

ping6 [-c count] [-i interval] [-s size] [-I interface] [options] destination

DESCRIPTION

ping6 sends ICMPv6 echo requests to IPv6 hosts. It tests network connectivity and measures latency.
Link-local addresses require interface specification. The -I option binds to specific network interface.
Statistics show packet loss and round-trip times. Minimum, average, and maximum latency are reported.
Flood mode tests network under load. Requires root privileges.
Many systems now use ping for both IPv4 and IPv6. The separate ping6 command remains for compatibility.

PARAMETERS

-c COUNT

Stop after count packets.
-i INTERVAL
Seconds between packets.
-s SIZE
Packet data size.
-I INTERFACE
Source interface.
-q
Quiet output.
-f
Flood mode.
-t TTL
Time to live.
-w DEADLINE
Timeout in seconds.

CAVEATS

Firewalls may block ICMPv6. Link-local requires interface. Flood ping requires root.

HISTORY

ping6 appeared with IPv6 implementations in the 1990s. On many modern systems, the ping command handles both protocols, making ping6 a compatibility alias.

SEE ALSO

ping(1), traceroute6(1), ip(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community