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 mpls segment routing ospf

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
ping mpls segment routing ospf fec
algorithm algorithm-id
<count count>
<destination address>
<detail> 
<exp forwarding-class> 
<instance routing-instance-name>
<logical-system (all | logical-system-name)>
<p2mp root-addr ip-address lsp-id identifier>
<size bytes>
<source source-address>
<stitched-protocol>
<sweep>

Description

Check the operability of MPLS segment routing label-switched path (LSP) connections added by ospf protocol. Type Ctrl+c to interrupt a ping mpls segment routing ospf command.

Options

algorithm algorithm-id (Optional) Specify the flexible algorithm identifier. The range of values is 0 through 255. The default value is 0 which means no algorithm is configured. The algorithm-id in conjunction with the prefix is used to distinguish labelled SR paths.
count count

(Optional) Number of ping requests to send. If count is not specified, five ping requests are sent. The range of values is 1 through 1,000,000. The default value is 5.

destination address

(Optional) Specify an address other than the default (127.0.0.1/32) for the ping echo requests. The address can be anything within the 127/8 subnet.

detail

(Optional) Display detailed information about the echo requests sent and received.

exp forwarding-class

(Optional) Value of the forwarding class for the MPLS ping packets.

fec

Ping an LDP-signaled LSP using the forwarding equivalence class (FEC) prefix and length.

instance routing-instance-name

(Optional) Allows you to ping a combination of the routing instance and forwarding equivalence class (FEC) associated with an LSP.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on the specified logical system.

p2mp root-addr ip-address lsp-id identifier

(Optional) Ping the end points of a point-to-multipoint LSP. Enter the IP address of the point-to-multipoint LSP root and the ID number of the point-to-multipoint LSP.

size bytes

(Optional) Size of the LSP ping request packet (88 through 65468 bytes). Packets are 4-byte aligned. For example, If you enter a size of 89, 90, 91, or 92, the router or switch uses a size value of 92 bytes. If you enter a packet size that is smaller than the minimum size, an error message is displayed reminding you of the 88-byte minimum.

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 (lo.0).

stitched-protocol

(Optional) Protocol stitched on intermediate node.

sweep

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

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 error codes are not counted in the received packets count. They are accounted for separately.

Sample Output

ping mpls segment-routing ospf

content_copy zoom_out_map
user@host>ping mpls segment-routing ospf 6.6.6.6
!!!!!
--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

ping mpls segment-routing isis

content_copy zoom_out_map
user@host>ping mpls segment-routing ospf 6.6.6.6 detail
Request for seq 1, to interface 333, label 22, packet size 80
Reply for seq 1, return code: Egress-ok, time: -7542.667 ms
        Local transmit time: 2019-03-06 11:55:03 IST 639.914 ms
        Remote receive time: 2019-03-06 11:54:56 IST 97.247 ms
Request for seq 2, to interface 333, label 22, packet size 80
Reply for seq 2, return code: Egress-ok, time: -7543.680 ms
        Local transmit time: 2019-03-06 11:55:04 IST 641.965 ms
        Remote receive time: 2019-03-06 11:54:57 IST 98.285 ms
Request for seq 3, to interface 333, label 22, packet size 80
Reply for seq 3, return code: Egress-ok, time: -7530.457 ms
        Local transmit time: 2019-03-06 11:55:05 IST 639.923 ms
        Remote receive time: 2019-03-06 11:54:58 IST 109.466 ms
Request for seq 4, to interface 333, label 22, packet size 80
Reply for seq 4, return code: Egress-ok, time: -7540.548 ms
        Local transmit time: 2019-03-06 11:55:06 IST 642.870 ms
        Remote receive time: 2019-03-06 11:54:59 IST 102.322 ms
Request for seq 5, to interface 333, label 22, packet size 80
Reply for seq 5, return code: Egress-ok, time: -7540.672 ms
        Local transmit time: 2019-03-06 11:55:07 IST 646.870 ms
        Remote receive time: 2019-03-06 11:55:00 IST 106.198 ms

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

ping mpls segment-routing ospf (Labelled OSPF flexible-algorithm IPv4 ping)

content_copy zoom_out_map
user@host>ping mpls segment-routing ospf 10.10.10.10 algorithm 140
!!!!!
--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

Release Information

Command introduced in Junos OS Release 19.1R1

algorithm option introduced in Junos OS Release 23.1R1 and Junos OS Evolved Release 23.1R1.

footer-navigation