The router ID that you configure must be one of the IP addresses of the IP interfaces configured in the switch.
You can configure an arbitrary value for the IP address for each router. However, each router ID must be unique. To ensure uniqueness, the router ID must match with one of the IP interface addresses of the router.
SEFOS# configure terminal SEFOS(config)# router ospf SEFOS(config-router)# router-id 10.10.2.1 SEFOS(config-router)# exit
SEFOS# show ip ospf OSPF Router ID 10.10.2.1 Supports only single TOS(TOS0) route ABR Type supported is Standard ABR It is an Area Border Router Number of Areas in this router is 2 Area is 0.0.0.6 Number of interfaces in this area is 1 SPF algorithm executed 6 times Area is 0.0.0.0 Number of interfaces in this area is 1 OSPF algorithm executed 6 times