01-20-2016 12:10 PM
Hi,
I am importing two VRFs (VRF-TEST1 and VRF-TEST2) into a third VRF (VRF-TEST3). Both VRFs have default routes, so I am trying to filter out default routes from one of them, but without much success. I cannot play with export filters, only imports.
Seeing as the “import map” command is not bound to a Route-target, I can’t see how this is possible.
Ideally it would look something like this, if commands allowed ….
ip vrf VRF-TEST3
rd 333:333
route-target import 111:111 route map Filter_Default_Route
route-target import 222:222
……………………………………………………………………
Any ideas would be really appreciated.
thanks
Here's my test BASE TEST config
ip vrf VRF-TEST1
rd 111:111
route-target export 111:111
show ip route vrf VRF-TEST1
S* 0.0.0.0/0 [1/0] via 192.168.10.1
B 10.10.10.0/24 [200/0] via 10.255.255.4,
C 192.168.165.0/29 is directly connected, Vlan1165
………………………………………………………………
ip vrf VRF-TEST2
rd 222:222
route-target export 222:222
show ip route vrf VRF-TEST2
S* 0.0.0.0/0 [1/0] via 192.168.20.1
B 10.20.20.0/24 [200/0] via 10.255.255.4,
………………………………………………………………
ip vrf VRF-TEST3
rd 333:333
route-target import 111:111
route-target import 222:222
I Would like to see something like this in VRF-TEST3 Routing table
show ip route vrf VRF-TEST3
B* 0.0.0.0/0 [1/0] via 192.168.10.1 (VRF-TEST1)
B 10.10.10.0/24 [200/0] via 10.255.255.4 (VRF-TEST1)
B 192.168.165.0/29 is directly connected (VRF-TEST1)
B 10.20.20.0/24 [200/0] via 10.255.255.4 (VRF-TEST2)
01-20-2016 03:44 PM
Not a complete solution, but enough to give you the jist:
ip prefix-list test1-export-prefix-list permit ...
route-map test1-export-route-map
match ip address prefix-list test3-export-prefix-list
ip vrf VRF-TEST1
export map test1-export-route-map
01-20-2016 03:45 PM
Or go the other way ...
ip vrf VRF-TEST3
import map test3-import-route-map
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