cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1011
Views
0
Helpful
6
Replies
Beginner

Dynamic route leaking from Global to VRF

Hi, any thoughts on how we could achieve a route leaking from the global to a vrf, based on a community ? For example, I have vrf TEST, and I want to import to it all routes in the global routing table marked with community 462:13

We are using a ASR 9K with IOS XR 4.2.3

Thanks

6 REPLIES 6
Highlighted
Cisco Employee

Dynamic route leaking from Global to VRF

Hi Marcos,

yes you can do that, but not in 4.2.3...

Here is a good write up that explains on how to do the export based on community or other matching parameters:

https://supportforums.cisco.com/docs/DOC-30871#2_Export_to_defaultvrf

regards

xander

Highlighted

Re: Dynamic route leaking from Global to VRF

Dear Xander,
could you please reshare the document you are referring to?
Highlighted
Cisco Employee

Re: Dynamic route leaking from Global to VRF

hi,

check out  https://supportforums.cisco.com/docs/DOC-30871

 

regards/Anoop K V

 

Highlighted

Re: Dynamic route leaking from Global to VRF

Hi Anook,

thank you for your reply.

 

I'm still unable to download the same file because I'm NOT authorized to access it?!
DOC-30871.png   

Highlighted
Cisco Employee

Re: Dynamic route leaking from Global to VRF

let me paste the section here for you then. 

Matching community attribute

Cisco Configuration on the router

route-policy dyna-route-leak-comm-27-x

  if community matches-every (65004:27) then

    pass

  endif

end-policy

!

vrf vrf2

address-family ipv4 unicast

export to default-vrf route-policy dyna-route-leak-comm-27-x

  export route-target

   1:2

  !

 

VRF Entry for route:

 

RP/0/RSP0/CPU0:vc#sh bgp vrf vrf2 27.0.0.0                    

Wed Jan 16 11:42:48.873 PST

BGP routing table entry for 27.0.0.0/30, Route Distinguisher: 1:2

……

……

 

Show command to see exported route in the global table

RP/0/RSP0/CPU0:vc#sh bgp 27.0.0.0

Wed Jan 16 11:44:26.564 PST

BGP routing table entry for 27.0.0.0/30

……

……..

   192.172.2.2 from 192.172.2.2 (192.172.2.2)

     Origin EGP, localpref 100, valid, external, best, group-best, import-candidate, imported

………

 

 

 

RP/0/RSP0/CPU0:vc#sh cef 27.0.0.0

Wed Jan 16 11:44:33.638 PST

27.0.0.0/30, version 2038990, internal 0x14004001 (ptr 0x759afbc0) [1], 0x0 (0x72fee360), 0x400 (0x74b8c278)

………

   next hop VRF - 'vrf2', table - 0xe0000043

   …….

Highlighted

Re: Dynamic route leaking from Global to VRF

Dear Anoop,

thank you for sharing, but to be honest with you I'm a bit disappointed. I was expecting to read a detailed information sheet regarding the topic discussed above, not only a pasted configuration example.

 

Anyway, thank you.

Nikolay

 

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here