03-14-2023 09:55 AM
Hello Everyone ..
I've an issue when trying to export a route that has been learnt via BGP on VRF-A to VRF-B on single Cisco ios XR router.
I've tried below config:
prefix-set TEST1
X.X.X.X/32
end-set
!
route-policy TEST1
if destination in TEST1 then
set extcommunity rt (123:1)
endif
end-policy
!
vrf A
address-family ipv4 unicast
import route-target
123:1
!
export route-policy TEST1
!
!
vrf B
address-family ipv4 unicast
import route-target
123:1
!
export route-policy TEST1
!
!
when checked output of VRF-B :
ios-xr#show route vrf B
Tue Mar 14 19:50:02.339
% No matching routes found
Is there something wronge with above config? or I miss something here?
Your help much appreciated.
Thanks ..
03-14-2023 10:27 AM
you must export the RT then you apply filter to what RT prefix will export
03-14-2023 11:09 AM
Sorry @MHM Cisco World I didn't understand you, can you explain more please?
03-14-2023 11:16 AM - edited 03-14-2023 11:16 AM
export route-target
xx:xx
then you apply export policy
03-14-2023 11:27 AM
Hi @MHM Cisco World ,
This is not required and it should work if you are setting the RT in the export route policy.
Regards,
03-14-2023 10:32 AM - edited 03-14-2023 10:40 AM
Hi @Omar Ismaeel ,
You are probably missing the VRF B configuration under "router bgp". Can you please provide the "show run router bgp" output.
Regards,
03-14-2023 11:12 AM
Hello @Harold Ritter
I've already configured the new VRF under BGP proccess, please check below:
vrf B
rd 123:1
bgp bestpath as-path multipath-relax
address-family ipv4 unicast
label mode per-vrf
maximum-paths ibgp 4
!
address-family ipv6 unicast
label mode per-vrf
maximum-paths ibgp 4
!
!
vrf A
rd XXX:XX
bgp bestpath as-path multipath-relax
address-family ipv4 unicast
label mode per-vrf
maximum-paths ibgp 4
!
address-family ipv6 unicast
label mode per-vrf
maximum-paths ibgp 4
!
!
03-14-2023 11:18 AM
Hi @Omar Ismaeel ,
You mentioned that the route is learnt via bgp in VRF A. I do not see any bgp neighbor configuration under VRF A. Can you provide a "show bgp vrf A xxxx/32".
Regards,
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