01-26-2020 09:49 PM
I have implemented VRF Lite on Cisco 9410 switch. There are two VRF's "XYZ" & "ABC" configured on the switch. I have a situation in which I have to leak overlapping IPv4 routes between the 2 VRFs.
How do I do it and what will be the best solution to this problem.
01-27-2020 12:59 AM
Hello,
below is a generic sample for importing one route:
ip routing
!
ip vrf XYZ
rd 100:1
route-target both rd 100:1
import map IMPORT_MAP_FROM_ABC
export map EXPORT_MAP_TO_ABC
!
ip vrf ABC
rd 200:2
route-target both rd 200:2
import map IMPORT_MAP_FROM_XYZ
export map EXPORT_MAP_TO_XYZ
!
interface GigabitEthernet 1/0/1
ip vrf forwarding XYZ
!
interface GigabitEthernet 1/0/2
ip vrf forwarding ABC
!
route-map IMPORT_MAP_FROM_ABC permit 10
match ip address prefix-list IMPORT_PREFIX_FROM_ABC
!
ip prefix-list IMPORT_PREFIX_FROM_ABC seq 5 permit 192.168.1.0/24
01-27-2020 02:14 AM
@ Georg, How do we leak routes which are overlapping on both the VRF's.
01-27-2020 02:42 AM
Hello,
how are the routes overlapping ? Can you post the routes you are trying to leak ?
01-27-2020 03:57 AM
01-27-2020 04:15 AM
Hello,
so the subnets overlap...are duplicate IP addresses in use as well ? If not, you could just use static host routes, as these would be more specific and override everything else.
If so, some sort of NAT could indeed be an option. I will need to lab this...
01-27-2020 04:21 AM
Yes, the duplicate IPs are in use as well. This is just one sample subnet that I have mentioned and there are few other overlapping subnets that require a solution.
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