06-20-2013 11:19 AM
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
06-29-2013 06:47 AM
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
02-03-2020 02:26 PM
02-03-2020 03:34 PM
02-04-2020 02:38 AM
Hi Anook,
thank you for your reply.
I'm still unable to download the same file because I'm NOT authorized to access it?!
02-05-2020 10:15 AM
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
…….
02-10-2020 01:52 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide