cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1838
Views
0
Helpful
3
Replies

IOS XR - PER VRF BGP NEXT-HOP Loopback

tomislavcer
Level 1
Level 1

Hello, 

does anybody know what would be proposed solution for migrating IOS config below to IOS XR ?

IOS =>

vrf data

rd 10000:100

route-target both 10000:100

bgp next-hop loopback100

where loopback 100 is used for MPLS TE traffic routing (per VRF MPLS TE). 

In IOS XR there is no possibility to migrate configuration in similar way, so I would like to know is there some by-the-book proposed solution for that ?

thank you

3 Replies 3

xthuijs
Cisco Employee
Cisco Employee

you can apply a route-policy to the route-target config like this, did you try that by any chance already?

vrf Tomislav

address-family ipv4 unicast

  import route-policy setNH

  import route-target

   100:123

  !

route-policy setNH

  set next-hop 1.2.3.4

end-policy

cheers!

xander

Thank you Xander.

This was way to go since I couldn't find upper mentioned equivalent for IOS XR,  but I wanted to check first did I maybe miss something.

regards

Hy, 

just to see another issue with this topic.

Let's say that we have Lo0 as global routing loopback and BGP router-id. And, we have Loop 100 for this TE purpose. 

How to export from ASR and set next-hop ? I guess I can not do it inside global VRF config with export-policy right, because next-hop will be anyway  set to Loopback0 toward VPNV4 route-reflector, and not Loopback 100 right ?