Explain it simpler
Every OSPF router needs a name tag so the others can tell it apart. That name tag is the router ID, written like an IP address. The router picks it in a fixed order: a name you set yourself first, then the highest address on a loopback (a pretend interface that never goes down), then the highest address on a real interface. Two routers with the same name tag confuse everyone. You also have to tell the router which of its ports should speak OSPF, either with a matching pattern or directly on each port. Finally, a passive port still tells others about its network but stays quiet, like listing your shop in the directory without knocking on doors.
Late on a Friday, Tomás at Pinecrest Credit Union clones the configuration from branch router R3 to stand up a new branch router, R4. He pastes it in, changes the IP addresses, plugs it in, and heads for the door. His phone buzzes before he reaches the parking lot: the monitoring system shows the OSPF neighbor between R4 and headquarters flapping, and the log is full of messages about a duplicate router ID. On top of that, someone notices OSPF hellos leaking onto the teller LAN where no router lives. Two small lines of configuration caused both problems. Which two?
Every OSPF (Open Shortest Path First) router needs a router ID (RID), a 32-bit value written like an IPv4 address that identifies it in the link-state database (LSDB), in neighbor tables and in DR (designated router) elections. It does not have to be a reachable address, but it must be unique within the OSPF domain. Knowing how the RID is chosen, and the two ways to enable OSPF on interfaces, lets you read and write almost any CCNA OSPF configuration. The RID appears everywhere in OSPF output: as the Neighbor ID column in show ip ospf neighbor, as the advertising router in show ip ospf database, and as the tiebreaker in DR elections.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.