Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

ping srv6

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
ping srv6 isis host
<count requests>
<detail>
<instance routing-instance-name>
<interval seconds>
<logical-system logical-system-name>
<pattern hex-string>
<size bytes> 
<source source-address>
<sweep>
<tos type-of-service>
<ttl value>

Syntax

content_copy zoom_out_map
ping srv6 spring-te sids-stack
<count requests>
<detail>
<instance routing-instance-name>
<interval seconds>
<logical-system logical-system-name>
<nexthop-address IPv6-address>
<nexthop interface interface-name>
<pattern hex-string>
<sids value>
<size bytes> 
<source source-address>
<sweep>
<tos type-of-service>
<ttl value>

Description

Check the reachability of a Segment Routing with IPv6 data plane (SRv6) network.

Options

host

IPv6 loopback address or SRv6 Segment Identifier (SID) of the remote system to ping.

count requests

(Optional) Number of ping requests to send. The range of values is 1 through 1,000,000. The default value is 5.

detail

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

instance routing-instance-name

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

interval seconds

(Optional) How often to send ping requests. The range of values, in seconds, is 0 through 2,147,483,647.

logical-system logical-system-name

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

nexthop-address IPv6-address

Nexthop IPv6 address of the outgoing interface.

nexthop-interface interface-name

Interface name of the outgoing interface.

pattern hex-string

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

sids value

Specify the SRv6 SIDs in the SRv6 stack. Add a set of values.

size bytes

(Optional) Size of ping request packets. The range of values, in bytes, is 0 through 65,468.

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.

sweep

(Optional) Automatically determine the size of the maximum transmission unit (MTU).

tos type-of-service

Type-of-Service (TOS) value to include in the ping request (IPv6). The range of values is 0 through 255.

ttl value

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

Required Privilege Level

network

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 srv6 is-is

content_copy zoom_out_map
user@host> ping srv6 isis 6000::1 count 3
!!!
--- lsping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
content_copy zoom_out_map
user@host> ping srv6 isis 6000::1 detail count 3
Request for icmp_seq=1, via 333, packet size 88
Reply for icmp_seq=1 from ::21.5.6.2 via 333 hlim: 60, trip-time: 13.132 ms
        Local transmit time: 2020-09-10 10:05:16 IST 414.986 ms
        Remote receive time: 2020-09-10 10:05:16 IST 444.730 ms

--- lsping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
content_copy zoom_out_map
user@host> ping srv6 isis 7777::7 detail count 1
Request for icmp_seq=3, via 335, packet size 88
Reply for icmp_seq=3 from 7777::7 via 335 hlim: 60, trip-time: 150.522 ms
        Local transmit time: 2020-09-10 10:06:09 IST 117.285 ms

--- lsping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss

ping srv6 spring-te sids-stack

content_copy zoom_out_map
user@host> ping srv6 spring-te sids-stack sids [ 6000:1::1 4000:1::1 2000::2 ] nexthop-address ::21.0.1.2 nexthop-interface ge-0/0/0.0 count 1 detail
Request for icmp_seq=1, via interface 333, packet size 120 
Reply for icmp_seq=1 from ::21.5.6.2 via interface 333 hops: 4, trip-time: 160.159 ms
        Local transmit time: 2020-09-22 11:13:06 IST 645.842 ms
        Remote receive time: 2020-09-22 11:13:06 IST 827.070 ms

--- lsping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 160.159/160.159/160.159 ms

Ping failure outputs

content_copy zoom_out_map
user@host> ping srv6 isis 8000::1
No route to host, exiting.
content_copy zoom_out_map
user@host> ping srv6 isis 6000::1 detail count 1 ttl 1
Request for icmp_seq=1, via 333, packet size 88
Reply for icmp_seq=1 from ::21.1.2.2: Time to live exceeded

--- lsping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
content_copy zoom_out_map
user@host> ping srv6 spring-te sids-stack sids [ 6000:1::1 4000:1::1 2000::2 ] nexthop-address ::21.0.1.2 nexthop-interface ge-0/0/0.0 count 1 detail
Request for icmp_seq=1, via interface 333, packet size 120
Timeout for seq 1

--- lsping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.000/0.000/0.000 ms
content_copy zoom_out_map
user@host> ping srv6 spring-te sids-stack sids [ 6000:1::1 4000:1::1 2000::2 ] nexthop-address ::21.0.1.2 nexthop-interface ge-0/0/0.0 count 1 detail xml
<lsping-results xmlns="http://xml.juniper.net/junos/20.4I0/junos-probe-tests">
<lsping-probe-request>
<lsping-sequence-number>1</lsping-sequence-number>
<lsping-interface-index>333</lsping-interface-index>
<lsping-packet-size>120</lsping-packet-size>
</lsping-probe-request>
<lsping-probe-reply>
<lsping-sequence-number>1</lsping-sequence-number>
<lsping-return-code>Timeout</lsping-return-code>
</lsping-probe-reply>
<lsping-results-summary>
<lsping-packets-transmitted>1</lsping-packets-transmitted>
<lsping-packets-received>0</lsping-packets-received>
<lsping-packet-loss>100</lsping-packet-loss>
<lsping-error-packets>0</lsping-error-packets>
</lsping-results-summary>
</lsping-results>

Release Information

Command introduced in Junos OS Release 21.2.

footer-navigation