Follow the procedure to leak routes between nondefault VRFs:
Procedure
-
Create the VRF instances and enter the VRF context.
-
Configure the route distinguisher (RD) for each VRF.
-
Configure the appropriate address-family for each VRF.
-
Configure the BGP route targets.
-
Associate the VRFs to the interfaces.
-
Configure IP addresses on the interface.
-
Enable required IGP protocol (Ex: OSPF) on the VRF.
-
Configure multiprotocol BGP.
-
Redistribute the routes (OSPF, static or connected routes) to be leaked into BGP.
Multiprotocol BGP (MP-BGP) will be used to leak routes between VRFs. To configure MP-BGP, users must configure a separate address-family within BGP for each VRF, and simply redistributes routes (OSPF, static or connected) within that VRF for the routes to be leaked.