Just create a bridge interface with zero member ports. The interface will always be active and thus will function as a regular loopback interface. This is the only way to emulate a loopback using RouterOS.
in a cisco router when you setup ospf you put the RID on o loopback int, other wise when the int goes down so does the ospf.
well i have spotted the same issue within Mtik. i did think i’d have the same issue as i could not find anyway to make a loopback device but it seems the issue is also present in Mtil. this is why i’m looking for an int that will only go down when the router goes down
OSPF router ID should not be changed after the OSPF process has been started. OSPF router ID change resets all OSPF adjacencies, resulting in temporary router outage. The router also has to originate new copies of all its LSAs with the new router ID. Stale copies of the LSAs originated by the “old” OSPF process remain in the OSPF topology databases of all routers until they expire (their age increases beyond max-age).
While I cannot answer for the specific OSPF implementation of RouterOS, best practice networking dictates that every device should have an ip-address that is not bound to a physical interface. In most OSPF implementations, the moment the OSPF service is started it binds to an interface, thus if you do not have a non-physical ip interface for it to bind to, any physical link event, e.g. loss of link, will impact the OSPF service.