OSPFv2 routes can be redistributed, and the routes to be redistributed can be specified.
The redistribution of BGP, connected, and static IP routes into OSPFv2 is configured on a device.
device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# redistribute static
device(config-router-ospf-vrf-default-vrf)# redistribute connected
device(config-router-ospf-vrf-default-vrf)# redistribute bgp
The following example redistributes static and BGP routes into OSPFv2 on a device.
device# configure terminal device(config)# router ospf device(config-router-ospf-vrf-default-vrf)# redistribute static device(config-router-ospf-vrf-default-vrf)# redistribute connected device(config-router-ospf-vrf-default-vrf)# redistribute bgp