11-19-2024 10:28 AM
I have multiple vrf's ona router with one being the source of leaked routes and advertising into the others. For a lab build, I just did two vrf's and was able to recreate the issue. Given some routes in the vrf MSTUNNEL:
B 10.0.253.187/32 [20/0] via 10.97.1.35, 00:05:17
B 10.0.253.188/32 [20/0] via 10.97.1.35, 00:05:17
and with these configurations:
ip vrf MSTUNNEL
rd 4280000174:10200
export map MSTUNNEL-NETWORKS-EXPORT
route-target export 10200:10001
route-target import 10200:20001
!
ip vrf ATT
import map MSTUNNEL-NETWORKS-IMPORT
route-target export 10200:20001
route-target import 10200:10001
to demonstrate this, I made the MSTUNNEL-NETWORKS-EXPORT into a deny process:
route-map MSTUNNEL-NETWORKS-EXPORT, deny, sequence 1
This is certainly not the intended design, but demonstrates what I am confused by. The ATT vrf still has IP routes from the MSTUNNEL vrf:
R34-ACCESS5#show ip route vrf ATT
B 10.0.253.187/32 [20/0] via 10.97.1.35 (MSTUNNEL), 00:08:14
B 10.0.253.188/32 [20/0] via 10.97.1.35 (MSTUNNEL), 00:08:14
So the two routes from the MSTUNNEL vrf, are in the ATT vrf, even though the export map is essentially a 'deny all'.
The route-map MSTUNNEL-NETWORKS-IMPORT allows the networks above and works as expected when I tweak it. However, I believe the EXPORT route-map should be denying all routes......
Solved! Go to Solution.
11-19-2024 01:04 PM
Export map can only be used for adding different/additional route-target to BGP update. No other set/filtering operation can be performed by that route map. If you want to filter prefixes, you have to use import map.
11-19-2024 01:13 PM
11-19-2024 10:44 AM
where did you apply the route-map and how?
11-19-2024 12:49 PM
The route-maps are configured under the vrf definitions above.
11-19-2024 01:13 PM
11-21-2024 03:59 AM
The link provided above provides exactly the information I needed and showed how to use export maps. Using just an export map under one VRF (removed route target export value) and an import route-target #####:##### on the destination VRF, it is working great.
I have not tried it in lab yet, but do you think an import map, matching on ExtCommunity, could replace the import route-target #####:##### on the destination VRF?
11-19-2024 01:04 PM
Export map can only be used for adding different/additional route-target to BGP update. No other set/filtering operation can be performed by that route map. If you want to filter prefixes, you have to use import 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