Step 1: Verify the LSP
Purpose
Typically, you use the
show mpls lsp extensivecommand to verify the LSP. However for quick verification of the LSP state, use theshow mpls lspcommand. If the LSP is down, use theextensiveoption (show mpls lsp extensive)as a follow-up. If your network has numerous LSPs, you might consider specifying the name of the LSP, using thenameoption (show mpls lsp namenameorshow mpls lsp namenameextensive).Action
To verify that the LSP is up, enter some or all of the following commands from the ingress router:
user@host>show mpls lspuser@host>show mpls lsp extensiveuser@host>show mpls lsp namenameuser@host>show mpls lsp namenameextensiveSample Output 1
user@R1>show mpls lspIngress LSP: 1 sessionsTo From State Rt ActivePath P LSPname10.0.0.6 10.0.0.1 Dn 0 -R1-to-R6Total 1 displayed, Up 0,Down 1Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0user@R3>show mpls lspIngress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0user@R6>show mpls lspIngress LSP: 1 sessionsTo From State Rt ActivePath P LSPname10.0.0.1 10.0.0.6 Dn 0 -R6-to-R1Total 1 displayed, Up 0,Down 1Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Sample Output 2
user@R1>show mpls lsp extensiveIngress LSP: 1 sessions10.0.0.6From: 10.0.0.1, State: Dn, ActiveRoute: 0, LSPname: R1-to-R6ActivePath: (none)LoadBalance: RandomEncoding type: Packet, Switching type: Packet, GPID: IPv4Primary State: DnWill be enqueued for recomputation in 22 second(s).1 Nov 2 14:43:38CSPF failed: no route toward 10.0.0.6[175 times]Created: Tue Nov 2 13:18:39 2004Total 1 displayed, Up 0, Down 1Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0user@R3>show mpls lsp extensiveuser@R3> show mpls lsp extensiveIngress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0user@R6>show mpls lsp extensiveIngress LSP: 1 sessions10.0.0.1From: 10.0.0.6, State: Dn, ActiveRoute: 0, LSPname: R6-to-R1ActivePath: (none)LoadBalance: RandomEncoding type: Packet, Switching type: Packet, GPID: IPv4Primary State: DnWill be enqueued for recomputation in 13 second(s).1 Nov 2 14:38:12CSPF failed: no route toward 10.0.0.1[177 times]Created: Tue Nov 2 13:12:22 2004Total 1 displayed, Up 0, Down 1Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Sample Output 3
user@R1>show mpls lsp name R1-to-R6Ingress LSP: 1 sessionsTo From State Rt ActivePath P LSPname10.0.0.6 10.0.0.1 Dn 0 - R1-to-R6Total 1 displayed, Up 0, Down 1Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Sample Output 4
user@R1>show mpls lsp name R1-to-R6 extensiveIngress LSP: 1 sessions10.0.0.6From: 10.0.0.1, State: Dn, ActiveRoute: 0, LSPname: R1-to-R6ActivePath: (none)LoadBalance: RandomEncoding type: Packet, Switching type: Packet, GPID: IPv4Primary State: DnWill be enqueued for recomputation in 10 second(s).1 Nov 2 14:51:53 CSPF failed: no route toward 10.0.0.6[192 times]Created: Tue Nov 2 13:18:39 2004Total 1 displayed, Up 0, Down 1Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0What It Means
Sample Output 1 shows a brief description of the state of the LSP for the ingress, transit, and egress routers. Output from ingress router
R1and egress routerR6shows that both LSPs are down,R1-to-R6andR6-toR1. With the configured LSPs onR1andR6, we would expect egress LSP sessions on bothR1andR6. In addition, transit routerR3has no transit sessions.Sample Output 2 shows all information about the LSPs, including all past state history and the reason why an LSP failed. Output from
R1andR6indicates that there is no route to the destination because the Constrained Shortest Path First (CSPF) algorithm failed.Sample Outputs 3 and 4 show examples of the output for the
show mpls lsp namecommand with theextensiveoption. In this instance, the output is very similar to theshow mpls lspcommand because only one LSP is configured in the example network in Figure 22. However, in a large network with many LSPs configured, the results would be quite different between the two commands.