Question

Difficulty: EasyOSPFv2 Neighbor Adjacencies and Router ID

A Cisco router running OSPFv2 has no manually configured router ID (`router-id` command). The router has the following active and operational interfaces configured with IP addresses:

- Loopback 0: 10.10.10.1/32
- Loopback 1: 172.16.50.1/32
- GigabitEthernet0/0: 192.168.1.1/24
- GigabitEthernet0/1: 192.168.2.1/24

What IP address will OSPF automatically select as the OSPF Router ID?

Answer: 172.16.50.1

Answer

172.16.50.1
In OSPFv2, the router ID election order is: 1) Manually configured router ID (`router-id` command), 2) Highest IP address among active loopback interfaces, and 3) Highest IP address among active non-loopback (physical) interfaces. Because active loopbacks exist and no manual router ID is specified, OSPF chooses the highest loopback IP address, which is 172.16.50.1.

Step-by-Step Solution

1
Check for a manually configured OSPF router ID
No manually configured OSPF router ID exists
Manual configuration using the `router-id` command takes highest priority.
2
Evaluate active loopback interfaces
Two active loopback interfaces exist: 10.10.10.1 and 172.16.50.1
If no explicit router ID is set, OSPF evaluates the IP addresses assigned to up/up loopback interfaces.
3
Select the highest IP address among active loopback interfaces
172.16.50.1 is selected as the Router ID
Comparing numerically, 172.16.50.1 is greater than 10.10.10.1.

Key Concept

OSPFv2 Router ID Election Order
Rate this question