VRF – Virtual Routing and Forwarding. Basically it is virtual router within physical router. With separated configuration and routing tables/databases. To use VRF, interface(or subinterface) should be assigned to VRF.
Sample configuration.
Basic VRF configuration:
vrf context superVRF
ip name-server 8.8.8.8
ip name-server 8.8.8.8 use-vrf na
Add interface to VRF:
interface Ethernet 1/10
vrf member superVRF
Static route for VRF:
vrf context superVRF
ip route 0.0.0.0/0 10.10.10.10
Configure Dynamic routing for VRF (OSPF as example):
router ospf 1
vrf superVRF
router-id 10.10.10.11
redistribute direct route-map ospf-direct
log-adjacency-changes detail
route-map ospf-direct permit 0
match ip address prefix-list ANY