Configuring OSPF on a PE device to redistribute BGP-VPNv4 or VPNv6 routes

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:

Defining an OSPF instance in a VRF

To define an OSPF instance in VRF VPN1, enter the following command at the OSPF configuration level.

device(config)# router ospf vrf VPN1

Creating an OSPF area in an OSPF VRF instance

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