Reference Guide

You can expose a unique set of routes from the Source VRF for Leaking to other VRFs. When two VRFs
leak or export routes, there is no option to discretely filter leaked routes from each source VRF. Meaning,
you cannot import one set of routes from one VRF and another set of routes from another VRF.
Only Active routes are eligible for leaking. For example, if one VRF has two routes corresponding to BGP
and OSPF, in which the BGP route is not active, the OSPF route takes precedence over BGP. Even
though the Target VRF has specified filtering options to match BGP, the BGP route is not leaked as that
route is not active in the Source VRF.
Related
Commands
ip route-import imports routes from another VRF.
ip route-import
Imports IPv4 routes that are leaked by another VRF using the tag specified by that VRF during export of these routes.
Syntax
ip route-import tag [route-mapname]
Parameters
route-import Enter the keyword route-import to import routes into the VRF.
tag
Enter a tag (ASN number) to specify an import route target for importing routes
from another VRF.
To import leaked routes from another VRF, you must use the same ASN number
that is specified as the export route target at the source VRF.
route-map-name
Enter the name of the route-map to filter the imported routes.
NOTE: You must use the route-map attribute while importing routes from the
global RTM. Route-maps enable you to filter routes at the import end based on
the matching criteria that you define in the route-map.
Defaults N/A
Command Modes
CONFIGURATION
VRF MODE
Command
History
Version Description
9.7(0.0) Introduced on the S4810, S4820T, S5000, S6000, S6000ON, and Z9500.
Usage
Information
It is possible to configure multiple import conditions per VRF depending on the exporting VRF.
The export-target and import-target support only the match protocol and match prefix-list options. Other
options that are configured in the route-maps are ignored.
Related
Commands
ip route-export exports routes to another VRF.
ipv6 route-export
Enables route leaking between VRFs. Exports or shares IPv6 routes corresponding to one VRF with other non-default VRFs.
Syntax
ipv6 route-export tag [route-map-name]
Parameters
route-export Enter the keyword route-export to leak or share routes between VRFs.
tag Enter a tag (ASN number) as the export route target to expose routes to other
VRFs. This tag acts as an identifier for exported routes. You can use this identifier
while importing these routes into another non-default VRF.
1388 Virtual Routing and Forwarding (VRF)