Step 1: Configure One-to-One Backup
The following steps show the commands you must issue to configure a LSP with fast reroute and a primary path. The
showcommand output includes bandwidth and hop limit for your information only. Bandwidth and hop limit are not configured on R1. You can configure bandwidth and hop limit using thebandwidthandhop-limitstatements at the[edit protocols mpls lsplsp-path-name]hierarchy level.
NOTE: It is not necessary to issue the
fast-reroutestatement on the transit or egress routers.
Action
To configure one-to-one backup on the ingress router, follow these steps:
- In configuration mode, go to the following hierarchy level:
[edit]user@R1#edit protocols mpls- Configure the LSP:
[edit protocols mpls]user@R1#set label-switched-pathlsp-path-nametoaddress[edit protocols mpls]user@R1#set label-switched-path r1-to-r5 to 192.168.5.1
- Configure one-to-one backup (fast reroute):
[edit protocols mpls]user@R1#set label-switched-pathlsp-path-namefast-reroute[edit protocols mpls]user@R1#set label-switched-path r1-to-r5 fast-reroute
- (Optional) Configure a primary path:
[edit protocols mpls]user@R1#set label-switched-pathlsp-path-nameprimaryprimary-name[edit protocols mpls]user@R1#set label-switched-path r1-to-r5 primary via-r2
- (Optional) Configure the primary ERO list:
[edit protocols mpls]user@R1#set pathpath-nameaddressloose[edit protocols mpls]user@R1#set path via-r2 10.0.12.14 looseSample Output
[edit protocols mpls]user@R1#showlabel-switched-path r1-to-r5 {to 192.168.5.1;fast-reroute;primary via-r2;bandwidthbps; # Bandwidth for the LSPhop-limitnumber;# Maximum number of routers the LSP can traverse}path via-r2 {10.0.12.14 loose;}[...Output truncated...][edit protocols mpls]user@R1#commitcommit completeWhat It Means
When the
fast-reroutestatement is configured, the ingress router signals all downstream routers to compute and preestablish a detour path for the LSP, using the Constrained Shortest Path First (CSPF) algorithm on the information in the local router's traffic engineering database (TED). By default, when the detour path is calculated by CSPF, the detour path inherits the same administrative group constraints (link coloring or resource classes) as the main LSP.