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> adaptive <option>

Sets the interpacket interval adaptively such that the interpacket interval adjusts to round-trip time.

ping{ ipv4_address | ipv6_address | hostname } adaptive option
ipv4_address
The IPv4 address of the host.
ipv6_address
The IPv6 address of the host.
hostname
A host being pinged. This keyword is used when the host is specified as a host name rather than as an IP address.
adaptive
Sets the interpacket interval adaptively such that the interpacket interval adjusts to round-trip time. The adaptive setting ensures that not more than one (or more, if preload is set) unanswered probes are present in the network.
option
Each of the following entries are considered options. These options can be issued consecutively, that is, in the same command line.
adaptive
Adaptively sets interpacket interval.
allow-broadcast
Allows you to ping broadcast address.
audible
Makes a beep sound on every ping, while the router pings for host details.
bypass-route
Bypasses normal routing tables during ping.
count
Specifies the number of ping requests to send.
deadline
Specifies the number of seconds before which ping expires.
ether-size
Matches the overall size of the data packet with the resultant size of the Layer 3 packet.
flood
Sends 100 ping requests each second.
interface
Specifies an interface that the device must use as the source address.
interval
Specifies the time in seconds for which the device must wait between ping requests.
mark
Specifies that the device must consider the ping request for special processing.
mtu-discovery
Specifies the path MTU discovery strategy.
no-loopback
Suppresses loop-back of multicast pings.
numeric
Does not resolve domain name system (DNS) names during ping.
pattern
Specifies the hexadecimal digit pattern to fill the packet.
quiet
Prints only the ping summary page.
record-route
Records the route that the packet takes.
size
Specifies the number of bytes to send for a ping request.
timestamp
Displays the timestamp during ping output.
tos
Marks packet with specified type of service (TOS).
ttl
Specifies the maximum packet life-time for a host.
verbose
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.

The host is specified either as host name (if DNS is being used on the network) or as an IPv4 or IPv6 address. If a host name is specified and neither the ipv4 nor ipv6 keyword is used, the IPv4 or IPv6 address associated with the host name is pinged, depending on which address is resolved first.

When using the ping command for fault isolation, enter the command on the local host to verify that the local network interface is up and running. Then, ping hosts and gateways farther away. Round-trip times and packet-loss statistics are computed.

If duplicate packets are received, they are not included in the packet-loss calculation, although the round-trip time of these packets is used in calculating the minimum, average, and maximum round-trip times.

Note: The minimum interpacket interval is 200 ms for all users, except for a super-user.

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

This example shows how to test whether the www.google.com network is reachable with an interpacket interval. The example also displays the time stamp in the ping output.

vyatta@vyatta:~$ ping www.google.com adaptive timestamp audible
PING www.google.com (216.58.216.164) 56(84) bytes of data.
[1428886179.416698] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=2 ttl=54 time=20.0 ms
[1428886179.457896] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=4 ttl=54 time=20.0 ms
[1428886179.499170] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=6 ttl=54 time=20.2 ms
[1428886179.539836] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=8 ttl=54 time=19.9 ms
[1428886179.580788] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=10 ttl=54 time=19.9 ms
[1428886179.621507] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=12 ttl=54 time=20.0 ms
[1428886179.662363] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=14 ttl=54 time=19.8 ms
[1428886179.703528] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=16 ttl=54 time=20.1 ms
[1428886179.744554] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=18 ttl=54 time=20.0 ms
[1428886179.785702] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=20 ttl=54 time=20.1 ms
[1428886179.826861] 64 bytes from sea15s02-in-f4.1e100.net (216.58.216.164): icmp_req=22 ttl=54 time=20.2 ms
[1428886181.384621] From 10.18.170.201 icmp_seq=1 Destination Host Unreachable
[1428886181.385770] From 10.18.170.201 icmp_seq=3 Destination Host Unreachable
[1428886181.386512] From 10.18.170.201 icmp_seq=5 Destination Host Unreachable
[1428886181.387046] From 10.18.170.201 icmp_seq=7 Destination Host Unreachable
[1428886181.387599] From 10.18.170.201 icmp_seq=9 Destination Host Unreachable
[1428886181.388177] From 10.18.170.201 icmp_seq=11 Destination Host Unreachable
[1428886181.388707] From 10.18.170.201 icmp_seq=13 Destination Host Unreachable
[1428886181.389269] From 10.18.170.201 icmp_seq=15 Destination Host Unreachable
[1428886181.389865] From 10.18.170.201 icmp_seq=17 Destination Host Unreachable
[1428886181.390681] From 10.18.170.201 icmp_seq=19 Destination Host Unreachable
[1428886181.391494] From 10.18.170.201 icmp_seq=21 Destination Host Unreachable
[216.164): icmp_req=165 ttl=54 time=20.4 ms