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
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:
thank you for your reply.
I'm still unable to download the same file because I'm NOT authorized to access it?!
|Cisco Configuration on the router|
if community matches-every (65004:27) then
address-family ipv4 unicast
export to default-vrf route-policy dyna-route-leak-comm-27-x
VRF Entry for route:
RP/0/RSP0/CPU0:vc#sh bgp vrf vrf2 188.8.131.52
Wed Jan 16 11:42:48.873 PST
BGP routing table entry for 184.108.40.206/30, Route Distinguisher: 1:2
Show command to see exported route in the global table
RP/0/RSP0/CPU0:vc#sh bgp 220.127.116.11
Wed Jan 16 11:44:26.564 PST
BGP routing table entry for 18.104.22.168/30
22.214.171.124 from 126.96.36.199 (188.8.131.52)
Origin EGP, localpref 100, valid, external, best, group-best, import-candidate, imported
RP/0/RSP0/CPU0:vc#sh cef 184.108.40.206
Wed Jan 16 11:44:33.638 PST
220.127.116.11/30, version 2038990, internal 0x14004001 (ptr 0x759afbc0) , 0x0 (0x72fee360), 0x400 (0x74b8c278)
next hop VRF - 'vrf2', table - 0xe0000043
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.