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
ABOUT THE AUTHOR
I am here to share my knowledge and experience in the field of networking with the goal being – “The more you share, the more you learn.”
I am a biotechnologist by qualification and a Network Enthusiast by interest. I developed interest in networking being in the company of a passionate Network Professional, my husband.
I am a strong believer of the fact that “learning is a constant process of discovering yourself.”
– Rashmi Bhardwaj (Author/Editor)