The ping
and ping6
commands verify if a remote IPv4 or IPv6 host is functioning and accessible across the network. When you execute the ping
or ping
6 command, it sends ICMP ECHO requests to the host and displays the results; ping6
can also send Node Information Queries (RFC4620).
Syntax
The following is the command syntax:
ping [ options ] hostname | IPv4 address
ping6 [ options ] hostname | IPv6 address
The ping and ping6
commands are basic Linux commands. Depending on the system you are working in, the available options for these commands may vary.