Users Guide

Table Of Contents
Redistribute leaked routes from one VRF to another VRF
Use the following procedure to export (leak) and redistribute specific IPv4 routes from one VRF instance to another VRF
instance:
Create a route map.
route-map route-map-name
Use any of the supported match or set attributes as required.
Enter the VRF from which you want to leak routes in CONFIGURATION mode.
ip vrf source-vrf-name
Export all routes that belong to one VRF instance in VRF-CONFIGURATION mode.
ip route-export route-target [route-map route-map-name]
Or
ipv6 route-export route-target [route-map route-map-name]
Use any of the supported match or set attributes as required.
Enter the VRF instance to which you want to leak routes in CONFIGURATION mode.
ip vrf destination-vrf-name]
Import routes from another VRF instance in VRF-CONFIGURATION mode using the same route target.
ip route-import route-target [route-map route-map-name]
Or
ipv6 route-import route-target [route-map route-map-name]
Use any of the supported match or set attributes as required.
Export routes from the second VRF instance to the first VRF instance in VRF-CONFIGURATION mode using a different
route target.
ip route-import route-target [route-map route-map-name]
Or
ipv6 route-import route-target [route-map route-map-name]
Use any of the supported match or set attributes as required.
Import routes to the first VRF instance from the second VRF instance in VRF-CONFIGURATION mode using the same route
target that you use to export from the second VRF instance.
ip route-import route-target [route-map route-map-name]
Or
ipv6 route-import route-target [route-map route-map-name]
Use any of the supported match or set attributes as required.
Redistribute leaked routes:
Redistribute leaked BGP routes in BGP-AF-CONFIGURATION mode.
redistribute imported-bgp-routes vrf source-vrf-name [route-map rmap-name]
Redistribute leaked OSPF routes in ROUTER-OSPF-CONFIGURATION mode.
redistribute imported-ospf-routes [route-map rmap-name]
742
Layer 3