ospf and vlan

I am running OSPF protocol on my network
there is 2 links between source router and destination router. According to the picture
I can run this, in 2 way.
A - 2 links on 2 ethernet port.“Figuar A.jpg” Attached File.
B - 2 links on one port but 2 vlans.“Figuar B.jpg” Attached File.
but when i run ospf on vlans mode , the ospf don,t work correctly
where i am wrong.
please help
thanks.
Figuar A.jpg
Figuar B.jpg

Can you ping the ospf neighbors? Or is the layer 2/3 path not working.

It sounds like when you use ospf for neighbor adjacency with subnets on untagged interfaces that it works. And when you use tagged interfaces for OSPF, it doesn’t work.

If that’s true, what specific error are you getting from OSPF?