cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2683
Views
2
Helpful
6
Replies

Route leaking IOS-XR

vngrtn
Level 1
Level 1

I currently have a cisco NCS5700 Series Router, and I was trying to route leak Public IP  address from a vrf into the global routing table of the route.  I looked at the documentation on this on Cisco's website, but the examples only showed routing using private addressing, and it showed them adding the network address to the vrf portion of the bgp configuration.  I am not sure that adding a default route as my network address under the bgp configuration would be a good idea, so I am looking for an alternate solution to accomplish my route leaking.

1 Accepted Solution

Accepted Solutions

friend the devil in detail 
Mr @Harold Ritter  link excellent and in step 2 in guide there is route-policy 

Step 2. Configure the route policies, these policies are intended to help you filter which prefixes are permitted to be leaked. In this example, the 

route-policy GLOBAL-2-VRF

 and 

route-policy VRF-2-GLOBAL

 are used.

View solution in original post

6 Replies 6

M02@rt37
VIP
VIP

hello @vngrtn,

To route leak a public IP address from a VRF into the global routing table on your Cisco NCS5700 Series Router, you can use the

export map to global

command. This allows you to selectively export specific routes from the VRF into the global routing table.

M02rt37_0-1687787216633.png

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

you can please check @Harold Ritter comment.

Hi @MHM Cisco World ,

It is certainly possible to leak routes between the global routing table and VRFs or vice versa. That functionality has been available for a long time.

https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xr-software/218336-configure-route-leak-between-grt-and-vrf.html

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Harold Ritter
Spotlight
Spotlight

Hi @vngrtn ,

Only routes present in BGP can be leaked. In the example they use a network statement to locally inject the route in BGP, but it is not required if the route is received from the CE via BGP. Also it doesn't matter if the routes are public or private.

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

vngrtn
Level 1
Level 1

Getting out of the VRF into the Global Routing table is where I have the issue.  I am only advertising routes from my network to my edge routers, and peer routers.  I have a BGP peer for internet on this router, and I am receiving a full BGP routing table from my peer rather than a default router.  I do not want to insert a full routing table into my VRF so that it can route out to the internet.

friend the devil in detail 
Mr @Harold Ritter  link excellent and in step 2 in guide there is route-policy 

Step 2. Configure the route policies, these policies are intended to help you filter which prefixes are permitted to be leaked. In this example, the 

route-policy GLOBAL-2-VRF

 and 

route-policy VRF-2-GLOBAL

 are used.