You can not use OSPF and RIP routing protocols simultaneously on the RouterOS.