A network engineer initializes OSPFv2 on a Cisco router using the configuration below:
router ospf 10
router-id 1.1.1.1
network 10.1.1.0 0.0.0.3 area 0
The router also has an active Loopback 0 interface with IP address 172.16.1.1/24 and an active GigabitEthernet0/0 interface with IP address 10.1.1.1/30.
After neighbor adjacencies are established, the engineer enters OSPF configuration mode and executes the command `router-id 2.2.2.2`. No further commands are issued, and the router is not rebooted.
Which IP address is currently used as the active OSPF Router ID by the running OSPF process?
- 1.1.1.1Answer
- B2.2.2.2
- C172.16.1.1
- D10.1.1.1
Answer
1.1.1.1 is the active OSPF Router ID because changing the router-id configuration does not update the operational Router ID until the OSPF process is cleared or the router is restarted.
The correct choice is 1.1.1.1. When OSPF initializes, the explicit `router-id` command overrides all interface IP addresses. Once selected and active, changing the `router-id` setting does not dynamically change the operational router ID until the OSPF process is restarted using the `clear ip ospf process` privileged EXEC mode command or by reloading the device.
Step-by-Step Solution
Key Concept
OSPFv2 Router ID Non-Preemptive Precedence and Process Reset Requirement