09-18-2025 02:38 AM
PE1 has two vrfs configured CE1A and CE2A.
Both CE1A (155.1.111.11/24) and CE2A (155.1.112.12/24) are advertising their loopback addresses.
I am trying to leak the loopback of CE2A (150.1.112.12/32) into CE1A without using the import route-target.
I have created the following prefix list and the route map.
ip prefix-list CE2A-LO seq 5 permit 150.1.112.12/32
route-map EXPORT_CE2A permit 10
match ip address prefix-list CE2A-LO
set extcommunity rt 65100:100 (i have tried with additive as well)
route-map EXPORT_CE2A permit 20
I have tried importing the route-map in the VRF and I have also tried to apply it though BGP under the VRF but nothing works.
Solved! Go to Solution.
09-18-2025 03:00 AM
Good day @zeeshanbasit25789 from your topology- you can use an import map that selectively imports prefixes into CE1A.
#ip prefix-list CE2A-LO seq 5 permit 150.1.112.12/32
#route-map IMPORT_TO_CE1A permit 10
#match ip address prefix-list CE2A-LO
#route-map IMPORT_TO_CE1A permit 20
and under VRF CE1A:
#vrf definition CE1A
#rd 65100:1
#route-target export 65100:1
#import map IMPORT_TO_CE1A
You can try to test it .
Thanks !
09-18-2025 08:15 AM
Hello
the vrf import/export map feature is for advertising-(leaking) or filtering between VRF ribs or the GRT or both with route-targets import/export being required.
The suggestion by M02@rt37 is a feature i’ve personally only have tested in a lab environment - using those vnet trunks and my understanding it needs to run on a minimum ios-xe platform -maybe other could confirm this?
09-18-2025 02:44 AM - edited 09-18-2025 02:44 AM
Without RT you can not
RT export/import all prefix then you can filter it by route-map
MHM
09-18-2025 03:27 AM
Yes I tried that option but I was thinking if it is possible to selectively advertise it. So that is the only way possible importing all and then filtering it out? Would you say that it is the best practice adoptive in the production envrionment as well?
09-18-2025 05:43 AM
So that is the only way possible importing all and then filtering it out? Correct
MHM
09-18-2025 11:16 PM
Would you say that it is the best practice adoptive in the production envrionment as well? I Dont get this Q' can you elaborate
But
Two CE connect to same PE and need route leaking is rare.
MHM
09-18-2025 11:19 PM
And again without using RT (route-target import or export) prefix not leaking between VRF in bgp.
Any other solution not work.
MHM
09-18-2025 03:00 AM
Good day @zeeshanbasit25789 from your topology- you can use an import map that selectively imports prefixes into CE1A.
#ip prefix-list CE2A-LO seq 5 permit 150.1.112.12/32
#route-map IMPORT_TO_CE1A permit 10
#match ip address prefix-list CE2A-LO
#route-map IMPORT_TO_CE1A permit 20
and under VRF CE1A:
#vrf definition CE1A
#rd 65100:1
#route-target export 65100:1
#import map IMPORT_TO_CE1A
You can try to test it .
Thanks !
09-18-2025 03:28 AM
I have tried that, it didn't work.
09-18-2025 07:46 AM
Hi @zeeshanbasit25789 ,
What @Joshqun Ismayilov recommended is the right way to do it, but it needs to be used in conjonction with the route-target import/export.
vrf definition CE1A
address-family ipv4
route-target import 1:2
route-target export 1:1
import map IMPORT_TO_CE1A
!
vrf definition CE2A
address-family ipv4
route-target import 1:1
route-target export 1:2
import map IMPORT_TO_CE2A
09-18-2025 04:34 AM
Hello @zeeshanbasit25789
See EVN 'easy-virtual-network'
On vrf definition/address-family-ipv4 see route-replicate command
On each VRF ...
--
https://lostintransit.se/2021/09/17/route-replication-the-easy-way/
09-18-2025 08:15 AM
Hello
the vrf import/export map feature is for advertising-(leaking) or filtering between VRF ribs or the GRT or both with route-targets import/export being required.
The suggestion by M02@rt37 is a feature i’ve personally only have tested in a lab environment - using those vnet trunks and my understanding it needs to run on a minimum ios-xe platform -maybe other could confirm this?
09-18-2025 11:47 AM
Hello @paul driver
EVN is supported on IOS version 15.2(4)S3 or later or IOS XE.
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