Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

ping <host> interval <seconds> <option>

Specifies the time in seconds for which the device must wait between ping requests.

ping{ ipv4_address | ipv6_address | hostname } interval seconds option
The IPv4 address of the host.
The IPv6 address of the host.
A host being pinged. This keyword is used when the host is specified as a host name rather than as an IP address.
The number of seconds for which the device must wait between ping requests.
Each of the following entries are considered options. These options can be issued consecutively, that is, in the same command line.
Adaptively sets interpacket interval.
Allows you to ping broadcast address.
Makes a beep sound on every ping, while the device pings for host details.
Bypasses normal routing tables during ping.
Specifies the number of ping requests to send.
Specifies the number of seconds before which ping expires.
Matches the overall size of the data packet with the resultant size of the Layer 3 packet.
Sends 100 ping requests each second.
Specifies an interface that the device must use as the source address.
Specifies the time in seconds for which the device must wait between ping requests.
Specifies that the device must consider the ping request for special processing.
Specifies the path MTU discovery strategy.
Suppresses loop-back of multicast pings.
Does not resolve domain name system (DNS) names during ping.
Specifies the hexadecimal digit pattern to fill the packet.
Prints only the ping summary page.
Records the route that the packet takes.
Specifies the number of bytes to send for a ping request.
Displays the timestamp during ping output.
Marks packet with specified type of service (TOS).
Specifies the maximum packet life-time for a host.
Displays a detailed output for the ping command.

Operational mode

The ping command tests whether a network host is reachable.

The ping command uses the ECHO_REQUEST datagram (ping) of the ICMP protocol to get an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams have an IP and an ICMP header, followed by a struct timeval data type and then an arbitrary number of pad bytes that are used to fill the packet.

When the ping command is interrupted by typing <Ctrl>+c, a brief statistical summary is displayed.

This example shows how to test whether www.google.com network is reachable by providing 3 seconds of time between 5 ping attempts.

vyatta@vyatta:~$ ping www.google.com interval 3 count 15
PING www.google.com ( 56(84) bytes of data.
64 bytes from sea15s02-in-f4.1e100.net ( icmp_req=1 ttl=54 time=20.2 ms
From icmp_seq=2 Destination Host Unreachable
From icmp_seq=3 Destination Host Unreachable
From icmp_seq=4 Destination Host Unreachable
From icmp_seq=5 Destination Host Unreachable
From icmp_seq=6 Destination Host Unreachable
From icmp_seq=7 Destination Host Unreachable
From icmp_seq=8 Destination Host Unreachable
From icmp_seq=9 Destination Host Unreachable
From icmp_seq=10 Destination Host Unreachable
From icmp_seq=11 Destination Host Unreachable
From icmp_seq=12 Destination Host Unreachable
From icmp_seq=13 Destination Host Unreachable
From icmp_seq=14 Destination Host Unreachable
From icmp_seq=15 Destination Host Unreachable

--- www.google.com ping statistics ---
15 packets transmitted, 1 received, +14 errors, 93% packet loss, time 41999ms
rtt min/avg/max/mdev = 20.264/20.264/20.264/0.000 ms