Step 1: Configure a Primary Path
Action
To configure a primary path with an ERO list, bandwidth, and priority, follow these steps:
- In configuration mode, go to the following hierarchy level:
[edit]user@host#edit protocols mpls- Configure the primary ERO list:
[edit protocols mpls]user@host#set pathpath-nameaddressstrict[edit protocols mpls]user@R1#set path via-r2 10.0.12.14 strictuser@R1#set path via-r2 10.0.24.2 strict
- Configure the LSP:
[edit protocols mpls]user@host#set label-switched-pathlsp-path-nametodestination;[edit protocols mpls]user@R1#set label-switched-path r1-to-r5 to 192.168.5.1;
- Configure the primary path:
[edit protocols mpls label-switched-pathlsp-path-name]user@host#set primaryprimary-name[edit protocols mpls label-switched-path r1-to-r5]user@R1#set primary via-r2
- Configure the bandwidth:
[edit protocols mpls label-switched-pathlsp-path-name]user@host#set primaryprimary-namebandwidthbandwidth[edit protocols mpls label-switched-path r1-to-r5]user@R1#set primary via-r2 bandwidth 35m
- Configure the priority value:
[edit protocols mpls label-switched-pathlsp-path-name]user@host#set primaryprimary-namepriorityreservation-priority setup-priority[edit protocols mpls label-switched-path r1-to-r5]user@R1#set primary via-r2 priority 6 6
- Verify and commit the configuration:
[edit protocols mpls label-switched-pathlsp-path-name]user@host#showuser@host#commitSample Output
The sample output below illustrates the configuration of the primary path on ingress router R1 in the network shown in Figure 2.
edit protocols mpls]user@R1#showlabel-switched-path r1-to-r5 {to 192.168.5.1;primary via-r2 { #Bandwidth and priority configured at the primary pathbandwidth 35m; #level of the hierarchypriority 6 6; #Priority setup and hold values}}path via-r2 { #Primary ERO list10.0.12.14 strict;10.0.24.2 strict;[...Output truncated...][edit protocols mpls]user@R1#commitcommit completeWhat It Means
The sample output shows a label-switched path (LSP) with bandwidth and priority applied to only one primary path. The same parameters specified one level up in the hierarchy, at the
[edit protocols mpls label-switched-pathlsp-path-name]hierarchy level, affect all paths.The path,
via-r2, specifies the complete strict path from the ingress to the egress routers through10.0.12.14,10.0.24.2, in that order. There cannot be any intermediate routers except the ones specified. However, there can be intermediate routers between10.0.24.2and the egress router because the egress router is not specifically listed in the path statement. To prevent intermediate routers before egress, configure the egress router as the last router, with a strict type.For more information on configuring a primary path, see the JUNOS MPLS Applications Configuration Guide.