Hi,
I am sorry, I did not check the earlier "policy based" solution properly before replying. I quickly verified, and in your case policy based installation will NOT work. This is because for policy based installation JunOS does not allow any random prefix installation if nexthop does not match.
The route's nexthop (protocol nexthop) should match the LSP egress IP address. i.e if your prefix 110.110.0.0/24 is learnt from R3 and if you try to install prefix with LSP associated with R2, it will *not* work. Since you are using RR and only one version of prefix will come to your router it is not possible to use policy based approach
Can I suggest one more workaround? This time I verified and it works 🙂 Please see if you can use this as workaround
If you have 2 RRs in your network, you can configure RR1 to have local-pref set to 90 for R2 and RR2 to have local-pref set to 90 for R3. This way, both RRs will give both the versions of prefixes (with default local-pref) to your receiving router (Say R3).
Pavan@R3# run show route 220.220.0.0 logical-system R7
inet.0: 97 destinations, 156 routes (97 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
110.110.0.0/24 *[BGP/170] 1d 05:41:55, localpref 100, from 3.3.3.3
AS path: 9875 I
> to 100.100.0.6 via ge-8/0/1.0
[BGP/170] 00:24:17, localpref 100, from 2.2.2.2
AS path: 9875 I
> to 100.100.0.6 via ge-8/0/1.0
[edit ]
Pavan@R3#
Since both the version of routes are available in your router, you can now configure a policy "lsp-map" with install-nexthop lsp to-R2.
Pavan@R3# show policy-options policy-statement lsp-map
from {
route-filter 110.110.0.0/16 orlonger;
}
then {
install-nexthop strict lsp r3-r2;
accept;
}
[edit ]
Pavan@R3#
*Note* - Use "strict" keyword here. Without that, you may still end up selecting R3's version as that may be the active BGP route. "strict" will force it to use this LSP.
BTW, this will remove the other entry (of R3) from both control and forwarding plane.
Hope this helps..