Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


ping clns



Check the reachability of a remote Connectionless Network Service (CLNS) node. Enter Ctrl+c to interrupt a ping clns command.



IP address or hostname of the remote system to ping.


(Optional) Display brief information.

count requests

(Optional) Number of ping requests to send. The range of values is 1 through 2,000,000,000. The default is an unlimited number of requests.


(Optional) Include in the output the interface on which the ping reply was received.


(Optional) Set the do-not-fragment (DF) bit in the IP header of the ping packets.

interval seconds

(Optional) How often to send ping requests. The range of values, in seconds, is 1 through infinity. The default value is 1.

logical-system logical-system-name

(Optional) Run the command from the specified logical system.


(Optional) Do not attempt to determine the hostname that corresponds to the IP address.

pattern string

(Optional) Specify a hexadecimal fill pattern to include in the ping packet.


(Optional) Send ping requests rapidly. The results are reported in a single message, not in individual messages for each ping request. By default, five ping requests are sent before the results are reported. To change the number of request, include the count option.

routing-instance routing-instance-name

(Optional) Name of the routing instance for the ping attempt.

size bytes

(Optional) Size of ping request packets. The range of values, in bytes, is 0 through 65,468. The default value is 56, which is effectively 64 bytes because 8 bytes of ICMP header data are added to the packet.

source source-address

(Optional) IP address of the outgoing interface. This address is sent in the IP source address field of the ping request. If this option is not specified, the default address is usually the loopback interface.

ttl value

(Optional) Time-to-live (TTL) value to include in the ping request (IPv6). The range of values is 0 through 255.


(Optional) Display detailed output.

wait seconds

(Optional) Maximum wait time, in seconds, after the final packet is sent. If this option is not specified, the default delay is 10 seconds. If this option is used without the count option, a default count of 5 packets is used.

Required Privilege Level


Output Fields

When you enter this command, you are provided feedback on the status of your request. An exclamation point (!) indicates that an echo reply was received. A period (.) indicates that an echo reply was not received within the timeout period. An x indicates that an echo reply was received with an error code. Packets with an error code are not counted in the received packets count. They are accounted for separately.

Sample Output

ping clns

Release Information

Command introduced before Junos OS Release 7.4.