Learning hub

OSPF

OSPF is the link-state routing protocol at the heart of the CCNA, and this hub ties together the core concepts, step-by-step configuration guides, a command cheat sheet, and hands-on graded labs. Use it as your map for going from understanding neighbor adjacencies and areas to configuring and verifying OSPF on real Cisco gear.

Open Shortest Path First (OSPF) is the link-state interior gateway protocol the CCNA expects you to configure, verify, and troubleshoot, and OSPFv2 is the IPv4 version on the exam. Instead of trading whole routing tables like a distance-vector protocol, every router floods link-state advertisements (LSAs), builds an identical map of its area, and runs the Dijkstra shortest-path-first algorithm to pick loop-free routes. It is an open standard with an administrative distance of 110 and a bandwidth-based cost metric, which makes it the default interior routing protocol in most enterprise networks and a heavily tested CCNA skill.

Everything starts with neighbor adjacencies. Routers discover each other with Hello packets sent to multicast 224.0.0.5, and two routers only become neighbors when their area ID, subnet and mask, hello/dead timers, and authentication settings match. Each router also needs a router ID: it uses the highest loopback IP, or the highest active interface IP, unless you pin one with the router-id command. Loopbacks are worth knowing here because OSPF advertises a loopback as a /32 host route by default, regardless of the mask you configured on it.

On broadcast multi-access segments like Ethernet, OSPF elects a Designated Router (DR) and Backup DR (BDR) to cut down flooding. The election favors the highest OSPF interface priority (default 1) and breaks ties with the highest router ID; a priority of 0 removes a router from contention, and the election is non-preemptive, so a better router that boots later does not take over. Point-to-point links skip the DR/BDR process entirely. The How to Configure Single-Area OSPF guide walks the whole enable-and-verify flow, ending at show ip ospf neighbor.

Design is where single-area and multi-area diverge. Small networks live entirely in area 0, the backbone. As they grow, you split them into multiple areas so that every non-backbone area attaches to area 0 through an Area Border Router (ABR), which summarizes routes to keep tables and SPF runs small. The How to Configure Multi-Area OSPF guide covers that layout and the LSA types that carry intra-area, inter-area, and external routes.

Two more levers shape path selection and safety. Cost is reference bandwidth (default 100 Mbps) divided by interface bandwidth, with a minimum of 1, so links faster than 100 Mbps tie unless you raise the reference bandwidth. The passive-interface command stops Hellos on host-facing LANs while still advertising that subnet, and OSPF authentication (covered in the MD5 guide) makes each side prove a shared key before forming an adjacency, protecting the topology from rogue routers.

To master OSPF, work the layers in order: understand this map first, keep the OSPF Commands Cheat Sheet open for exact syntax (network wildcards, router-id, ip ospf cost, passive-interface, and the message-digest authentication lines), then build and grade the hands-on labs in the bundle until a clean show ip ospf neighbor and correct routing table come naturally. Reading the concepts proves you recognize OSPF; passing the graded labs proves you can deploy it.

Step-by-step guides

Follow these to configure it yourself, command by command.

Command cheat sheet

Practice on real Cisco IOS

Build and grade hands-on Cisco Modeling Labs — the only way it sticks.

Frequently asked questions

Should I learn single-area or multi-area OSPF first?

Start with single-area OSPF. It teaches the fundamentals you reuse everywhere: forming neighbors, the router ID, DR/BDR election, cost, and verification with show ip ospf neighbor. Once a single area is solid, move to multi-area, which adds area 0 as the backbone, Area Border Routers, and route summarization. You typically only need multiple areas when a network grows large enough that a single area's flooding and SPF calculations become a burden, but the CCNA expects you to configure and troubleshoot both.

What is the difference between OSPF priority and OSPF cost?

They control different things. Priority (default 1) only decides the DR/BDR election on a broadcast segment: the highest priority wins, ties break on the highest router ID, and a priority of 0 removes a router from the election. Cost is the metric OSPF uses to choose the best path, calculated as reference bandwidth (default 100 Mbps) divided by interface bandwidth. Changing priority influences who becomes DR; changing cost influences which route ends up in the routing table.

How long does it take to get comfortable with OSPF for the CCNA?

It varies by background, but most learners need roughly one to two focused weeks: a few days on concepts and single-area configuration, then more time on multi-area design, network types, passive interfaces, and MD5 authentication. The fastest path is repetition on real configs. Read the concept map, keep the cheat sheet handy for syntax, and build and grade the labs until adjacencies and a correct routing table come without hesitation. Treat published exam weightings and blueprint versions as subject to change and confirm the current details on Cisco's official CCNA page.

Study every CCNA topic this way

The CCNA Complete Path sequences all 17 lab bundles into one graded progression you own forever.