Hi
It could be that the OSPF subnets are being learned with a lowest administrative distance lowest via BGP than OSPF or some redistribution or ACL could be the problem. We should verify the configuration to determine the cause, Could you please share the configuration and logs of both devices? and the diagram.
Thanks.
>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<