Routes in VRF table can be leaked to Global routing table and traffic communication is possible.MP-BGP need not be implemented to meet the requirement.
Methods for Route Leaking from Global Routing Table into VRF table(VRF1) –
These 3 Methods mentioned below are on Route leaking from Global Routing Table into the VRF table (VRF1) and vice-versa –
1. Route map and VRF Receive configuration
2. Static route Configuration
3. Dynamic routing Configuration
Option 1 – Route map and VRF Receive configuration
when we enter the command <ip vrf receive VRF1> it adds the connected subnet of the global interface to the vrf routing table and traffic from global to vrf is policy routed by the route-map applied under the under.
R2#sh ip route vrf VRF1
Now if we ping from R3 to R1:
Option 2 – Static route Configuration
Note: – Remove “ip vrf receive” and “route-map” from the R2 eth 0/1 interface.
Option 3 – Dynamic Routing Configuration
We will remove the static route and add 2 new loopback on router R2.
We will create 2 GRE tunnel on router R2 one in global and one in vrf VRF1.
# We will now run a dynamic routing protocol on these tunnels & advertise the networks, i chose OSPF for this example.
R2#show ip ospf neighbor
Related – VRF vs VRF Lite