After creating a VRF, you can access it as if it were a virtual router for the purpose of configuring the IGP.
If you are in the context of the virtual router that has the VRF, you access the VRF as follows:
- host1(config)#virtual-router :vrfa
- host1:default:vrfa(config)#
If you are not in the context of the virtual router that has the VRF, you access the VRF as follows:
- host1(config)#virtual-router boston:vrfa
- host1:boston:vrfa(config)#
The following commands illustrate one way to configure OSPF; you can configure RIP and IS-IS similarly:
- host1(config)#ip vrf vrfa
- host1(config-vrf)#rd 100:5
- host1(config-vrf)#route-target both 100:5
- host1(config-vrf)#exit
- host1(config)#virtual-router :vrfa
- host1:default:vrfa(config)#router ospf 100
- host1:default:vrfa(config-router)#redistribute
bgp
At this point you proceed with the IGP configuration for the VRF.