This article provides information on how to identify the active routes that are using a particular RSVP LSP as the next hop.
How to identify the active routes that are using a particular RSVP LSP as the next hop.
The Rt counter in the output of show mpls lsp' or 'show rsvp session shows the number of active routes, which are associated with an RSVP LSP. To list the active routes, which are currently using this LSP, you can use the following sequence of commands.
LSP Ingress :
lab@router> show mpls lsp ingress count-active-routes Ingress LSP : 2 sessionsTo From State Rt P ActivePath LSPname172.16.0.3 172.16.0.1 Up 5 * p1-to-p2 172.16.0.5 172.16.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0lab@router> show route label-switched-path p1-to-p2 inet.0 : 20 destinations, 20 routes (20 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both172.16.200.1/32 *[BGP/170] 6d 03:48:54, localpref 100, from 172.16.0.3AS path: I> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2172.16.200.2/32 *[BGP/170] 6d 03:48:54, localpref 100, from 172.16.0.3AS path: I> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2172.16.200.3/32 *[BGP/170] 6d 03:48:54, localpref 100, from 172.16.0.3AS path: I> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2172.16.200.4/32 *[BGP/170] 6d 03:48:54, localpref 100, from 172.16.0.3AS path: I> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2172.16.200.5/32 *[BGP/170] 6d 03:48:54, localpref 100, from 172.16.0.3AS path: I> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2inet.3 : 8 destinations, 14 routes (6 active, 0 holddown, 6 hidden)+ = Active Route, - = Last Active, * = Both172.16.0.3/32 *[RSVP/7/1] 6d 00:07:01, metric 20> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2172.1.2.3/32 *[RSVP/7/1] 6d 00:07:01, metric 20> to 172.16.200.2 via et-0/0/2.2, label-switched-path p1-to-p2iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)mpls.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)lab@router>
LSP Transit :
lab@router1> show mpls lsp countIngress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Egress LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0Transit LSP : 6 sessionsTo From State Rt Style Labelin Labelout LSPname172.16.0.1 172.16.0.3 Up 1 1 FF 300704 3 p2-to-p1 172.16.0.1 172.16.0.5 Up 1 1 FF 300768 3 p3-to-p1172.16.0.3 172.16.0.1 Up 1 1 FF 300752 3 p1-to-p2172.16.0.3 172.16.0.5 Up 1 1 FF 300720 3 p3-to-p2172.16.0.5 172.16.0.1 Up 1 1 FF 300688 3 p1-to-p3172.16.0.5 172.16.0.3 Up 1 1 FF 300736 3 p2-to-p3Total 6 displayed, Up 6, Down 0lab@router1> show route label-switched-path p1-to-p2 inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden)iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)mpls.0 : 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both300752 *[RSVP/7/1] 6d 00:07:57, metric 1> to 192.168.0.2 via et-0/0/2.3, label-switched-path p1-to-p2*IP RFC1918 addressing used