A router ID can be manually set or selected automatically by the router: To maintain OSPF stability, it is advised that you manually configure a router ID. If no loopback interface is enabled, the router assigns its router ID to the largest IP address among the other interface addresses.