Activate OSPF using network statements and inverse masks on the routers code example
Example: OSPF protocol configuration
Router>en
Router#conf t
Router(config)#router ospf ?
<1-65535> Process ID
Router(config)#router ospf <Process ID>
Router(config-router)#network <Netword ID> <Wild Card Mask> Area <Area No>