OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : LDP Configuration : MPLS LDP PING and TRACEROUTE
MPLS LDP PING and TRACEROUTE
This example shows MPLS ping and trace route for LDP
#show ip ospf neighbor
Total number of full neighbors: 1
OSPF process 0 VRF(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface           Instance ID
2.2.2.2        1   Full/DR          00:00:33    10.10.10.2     xe1                    0
 
#show ldp session
Peer IP Address           IF Name    My Role    State      KeepAlive
2.2.2.2               xe1       Passive   OPERATIONAL   30
 
#show mpls  forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
B - BGP FTN, K - CLI FTN, t - tunnel, P - SR Policy FTN,
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code FEC FTN-ID Nhlfe-ID Tunnel-id Pri LSP-Type Out-Label Out-Intf ELC Nexthop
L> 2.2.2.2/32 1 1 - - LSP_DEFAULT 3 xe1 No 10.10.10.2
 
#ping mpls ldp 2.2.2.2/32 detail
Sending 5 MPLS Echos to 2.2.2.2, timeout is 5 seconds
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
Type 'Ctrl+C' to abort
! seq_num = 1 2.2.2.2 1.73 ms
! seq_num = 2 2.2.2.2 1.46 ms
! seq_num = 3 2.2.2.2 0.64 ms
! seq_num = 4 2.2.2.20.65 ms
! seq_num = 5 2.2.2.20.62 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.62/1.18/1.73
 
#trace mpls ldp 2.2.2.2/32 detail
Tracing MPLS Label Switched Path to 2.2.2.2, timeout is 5 seconds
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
Type 'Ctrl+C' to abort
0 10.10.10.2 [Labels: 0]
! 1 2.2.2.2 0.69 ms
 
#ping mpls ldp 2.2.2.2/32 detail interval 5000 rep
reply-mode repeat
#ping mpls ldp 2.2.2.2/32 detail interval 5000 repeat 50
Sending 50 MPLS Echos to 2.2.2.2, timeout is 5 seconds
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
Type 'Ctrl+C' to abort
! seq_num = 1 2.2.2.2 0.70 ms
! seq_num = 2 2.2.2.2 0.73 ms
! seq_num = 3 2.2.2.2 0.71 ms
Success Rate is 100.00 percent (3/3)
round-trip min/avg/max = 0.70/0.71/0.73
Last modified date: 10/17/2023