Every time I saw that we leake route from VRF to global routing table, So VRF can use the Global routing table for Internet Accsess ( Internet over L3 VPN ) or for specific network access.
But heere we are going to see that If we want to import routes from Global routing table to VRF then how we can configure the network device .
Using the feature know as Import Route Map ( import ipv4 unicase | multicast )
The BGP Support to Import routes from Global Table into a VRF Table feature introduces the capability to import IPv4 unicast prefixes from the global routing table into a Virtual Private Network (VPN) routing/forwarding instance (VRF) table using an import route map.
Below is the Example :
ip prefix-list chetan seq 10 permit x.x.x.x/x
ip prefix-list chetan seq 20 permit x.x.x.x/x
ip prefix-list chetane seq 30 permit x.x.x.x/x
ip vrf ckumar
import ipv4 unicast map CHETAN_IMPORT
route-target export 50:1
route-target import 50:1
route-map CHETAN_IMPORT permit 10
match ip address prefix-list chetan