API Guide

CONFIGURATION
ip vrf destination-vrf-name
ip route-import 1:1
The routes that you exported from the source VRF instance are now available in the destination VRF instance.
Route leaking using route maps
You can leak routes in one VRF instance to another VRF instance using route maps.
To leak routes in one VRF instance using route maps:
1. Enter the VRF from which you want to leak routes using route targets.
CONFIGURATION
ip vrf source-vrf-name
ip vrf VRF-A
2. Configure the IP prefix.
CONFIGURATION
ip prefix-list prefix-list-name {permit | deny} ip-address
ip prefix-list abc permit 20.0.0.0/24
or
ip prefix-list abc deny 20.0.0.0/24
3. Configure the route-map.
CONFIGURATION
route-map route-map-name
route-map xyz
4. Associate the prefix list to the route-map.
CONFIGURATION
route-map route-map-name {permit | deny} rule
match ip address prefix-list prefix-list-name
route-map xyz permit 10
match ip address prefix-list abc
or
route-map xyz deny 10
match ip address prefix-list abc
5. Export the routes from a VRF instance using route maps.
VRF CONFIGURATION
ip route-export route-target route-map-name route-map-name
ip route-export 1:1 route-map xyz
6. Enter the destination VRf instance into which you want to leak the routes using route maps.
CONFIGURATION
ip vrf destination-vrf-name
ip vrf VRF-B
7. Import these leaked routes into another VRF instance.
VRF CONFIGURATION
540
Layer 3