An administrator is configuring OSPFv2 on Router R1. The router has no explicit 'router-id' command under its OSPF process, but has the following active interfaces:
- Loopback0: 172.16.1.1/32
- Loopback1: 10.200.1.1/32
- GigabitEthernet0/0: 10.0.0.1/24 (configured with 'ip ospf 1 area 0')
Directly connected on GigabitEthernet0/0 is Router R2, which has its OSPF process configured with an explicit 'router-id 172.16.1.1' and GigabitEthernet0/0 (10.0.0.2/24) in Area 0. When both routers attempt to form an adjacency, R1 shows R2 stuck in the INIT state, and R2 logs report duplicate OSPF packets.
Based on OSPF election logic and neighbor requirements, why is the neighbor relationship stuck in this state?
- R1 selected 172.16.1.1 as its Router ID because it has the highest IP address among active loopback interfaces, causing a duplicate Router ID conflict with R2.Cevap
- BR1 selected 10.200.1.1 as its Router ID because Loopback1 was configured after Loopback0, causing an OSPF area identifier mismatch between the neighbors.
- CR1 selected 10.0.0.1 as its Router ID because physical interfaces override loopback interfaces when OSPF is enabled directly on the interface, causing a DR/BDR election priority failure.
- DR1 selected 10.200.1.1 as its Router ID because OSPF defaults to selecting the lowest active loopback IP address, causing MTU negotiation to fail during Hello exchange.
Cevap
R1 selected 172.16.1.1 as its Router ID because it has the highest IP address among active loopback interfaces, causing a duplicate Router ID conflict with R2.
The correct answer identifies that R1 automatically selects 172.16.1.1 as its Router ID because 172.16.1.1 is the highest IP address among its active loopback interfaces (172.16.1.1 vs 10.200.1.1). Because R2 has an explicit Router ID of 172.16.1.1, both routers share the same Router ID on the segment. Routers with duplicate Router IDs ignore or reject each other's Hello packets and fail to list each other as valid neighbors, causing the relationship to remain stuck in the INIT state.
Adım Adım Çözüm
Anahtar Kavram
OSPFv2 Router ID Election Hierarchy and Duplicate Router ID Neighbor Behaviors