Dynamic import of global table route to VRF table on Cisco IOS

A quick and dirty fix for quite a few situations. eg. staged migration of services from global table to L3 VPN.

Bear in mind however the routes you’re importing MUST be installed to the global table from a BGP source in many versions of IOS. eg. you may not be able to import a static from global. Check where your route is coming from and what your IOS version' particular behavior is first.

ip prefix-list P_LIST seq 5 permit  
route-map FROM_GLOBAL
  permit 10  
  match ip address prefix-list P_LIST  
ip vrf KLUDGE  
  import ipv4 unicast map FROM_GLOBAL  
Author image
About colin-stubbs