To allow OSPF route exchange between a specified VRF on a PE device and its associated CE device, OSPF must be configured to redistribute BGP routes from the local AS as described in the following steps:
To define an OSPF instance in VRF VPN1, enter the following command at the OSPF configuration level.
device(config)# router ospf vrf VPN1
To create OSPF area 1 in OSPF VRF instance VPN1, enter the following command in the OSPF VRF Instance configuration level.
device(config-ospf-router)# area 1