← 返回命令列表

Linux command

ping6 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Ping IPv6 address

ping6 [2001:db8::1]

Ping hostname

ping6 [ipv6.example.com]

Limit packet count

ping6 -c [5] [host]

Set interval

ping6 -i [2] [host]

Set packet size

ping6 -s [1000] [host]

Flood ping

ping6 -f [host]

Quiet output

ping6 -q -c [10] [host]

Specify interface

ping6 -I [eth0] [fe80::1]

说明

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.

参数

-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.

FAQ

What is the ping6 command used for?

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.

How do I run a basic ping6 example?

Run `ping6 [2001:db8::1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _COUNT_ do in ping6?

Stop after count packets.