Configuring OSPF on the PE router to redistribute BGP-VPNv4 routes

To allow OSPF route exchange between a specified VRF on a PE router and its associated CE router, OSPF must be configured to redistribute BGP routes from the local AS. To enable OSPF on PE 1 in OSPF to CE network example and configure it to redistribute BGP-VPNv4 routes into OSPF, enter the following commands.

      device(config)# router ospf vrf VPN1
device(config-ospf-router)# area 1
device(config-ospf-router)# redistribute bgp