
2. CLI Commands
ping
ETERNUS DSP CLI Reference Guide20
■OPTIONS
-a Audible ping.
-A Adaptive ping. Interpacket interval adapts to round-trip time, so that effectively not more than one (or more,
if preload is set) unanswered probes present in the network. Minimal interval is 200msec for not super-user. On
networks with low rtt this mode is essentially equivalent to flood mode.
-b Allow pinging a broadcast address.
-B Do not allow ping to change source address of probes. The address is bound to one selected when ping starts.
-m mark Use mark to tag the packets going out. This is useful for variety of reasons within the kernel such as
using policy routing to select specific outbound processing.
-c count Stop after sending count ECHO_REQUEST packets. With deadline option, ping waits for count
ECHO_REPLY packets, until the timeout expires.
-d Set the SO_DEBUG option on the socket being used. Essentially, this socket option is not used by Linux kernel.
-F flow label Allocate and set 20 bit flow label on echo request packets. (Only ping6). If value is zero, kernel
allocates random flow label.
-f Flood ping. For every ECHO_REQUEST sent a period ``.'' is printed, while for ever ECHO_REPLY received a back-
space is printed. This provides a rapid display of how many packets are being dropped. If interval is not given, it
sets interval to zero and outputs packets as fast as they come back or one hundred times per second, whichever is
more. Only the super-user may use this option with zero interval.
-i interval Wait interval seconds between sending each packet. The default is to wait for one second
between each packet normally, or not to wait in flood mode. Only super-user may set interval to values less 0.2
seconds.
-I interface address Set source address to specified interface address. Argument may be numeric IP
address or name of device. When pinging IPv6 link-local address this option is required.
-l preload If preload is specified, ping sends that many packets not waiting for reply. Only the super-user may
select preload more than 3.
-L Suppress loopback of multicast packets. This flag only applies if the ping desti- nation is a multicast address.
-M hint Select Path MTU Discovery strategy. hint may be either do (prohibit fragmentation, even local one),
want (do PMTU discovery, fragment locally when packet size is large), or dont (do not set DF flag).
-N nioption Send ICMPv6 Node Information Queries (RFC4620), instead of Echo Request.
•name Queries for Node Names.
•ipv6 ies for IPv6 Addresses. There are several IPv6 specific flags.
-ipv6-global Request IPv6 global-scope addresses.
-ipv6-sitelocal Request IPv6 site-local addresses.
-ipv6-linklocal Request IPv6 link-local addresses.
-ipv6-all Request IPv6 addresses on other interfaces.
•ipv4 Queries for IPv4 Addresses. There is one IPv4 specific flag.
-ipv4-all Request IPv4 addresses on other interfaces.
•subject-ipv6=ipv6addr IPv6 subject address.
•subject-ipv4=ipv4addr IPv4 subject address.
•subject-name=nodename Subject name. If it contains more than one dot, fully-qualified domain name is
assumed.
•subject-fqdn=nodename Subject name. Fully-qualified domain name is always assumed.
-n Numeric output only. No attempt will be made to lookup symbolic names for host addresses.
-p pattern You may specify up to 16 ``pad'' bytes to fill out the packet you send. This is useful for diagnosing
data-dependent problems in a network. For example, -p ff will cause the sent packet to be filled with all ones.
-D Print timestamp (unix time + microseconds as in gettimeofday) before each line.
-Q tos Set Quality of Service -related bits in ICMP datagrams. tos can be either decimal or hex number. Tradition-
ally (RFC1349), these have been interpreted as: 0 for reserved (currently being redefined as congestion control),
1-4 for Type of Service and 5-7 for Precedence. Possible settings for Type of Service are: minimal cost: 0x02, reli-
ability: 0x04, throughput: 0x08, low delay: 0x10. Multiple TOS bits should not be set simultaneously. Possible set-
tings for special Precedence range from priority (0x20) to net control (0xe0). You must be root (CAP_NET_ADMIN
capa- bility) to use Critical or higher precedence value. You cannot set bit 0x01 (reserved) unless ECN has been