Course 9: OSPF·Lesson 5.3 (15 of 20 in this course)·84 of 118 in the CCNA series
OSPF cheat sheet
Defaults, timers, neighbour requirements and states, packet and LSA types, network types, route codes and commands on one page.
Intermediate · 6 min read
What you will learn
After this lesson, you can look up any OSPF default, state, LSA type or command in one place while you practise or revise.
Revision
Reference
OSPFv2 is the link-state interior routing protocol for IPv4 defined in RFC 2328. Routers form adjacencies, flood LSAs so every router in an area holds the same database, and run SPF to choose the lowest-cost path to each network.
In simple terms: Routers share one map and each works out its own shortest path on it.
Everything from the course on one page, for revision and for use beside a lab. Each row links back to an idea explained properly in the lessons.
Defaults and numbers
Item
Value
IP protocol number
89 (not TCP or UDP)
Multicast addresses
224.0.0.5 all OSPF routers · 224.0.0.6 DR and BDR
Administrative distance
110
Hello / dead, broadcast and point-to-point
10 s / 40 s
Hello / dead, non-broadcast and point-to-multipoint
30 s / 120 s
Wait timer (DR election)
Equal to the dead interval
Reference bandwidth
100 Mbps (auto-cost reference-bandwidth, in Mbps)
Interface cost
Reference ÷ bandwidth, rounded down, 1 to 65 535
Interface priority
1 (range 0 to 255; 0 = never DR or BDR)
Equal-cost paths installed
4 (maximum-paths)
LSA refresh / MaxAge
30 minutes / 60 minutes
Default route (default-information originate)
Type 5, E2, metric 1
Router ID
router-id under router ospf,
otherwise the highest IPv4 address on an up loopback,
otherwise the highest IPv4 address on any other up interface.
Chosen when the process starts. A change takes effect after clear ip ospf process or a reload.
Neighbours
Must match (in the hello)
Must also be right
Doesn't need to match
Area ID · subnet and mask · hello and dead intervals · authentication · stub area flag
Unique router IDs · IP MTU (checked in DBDs) · interface not passive · same network type
Process ID · priority · cost
State
Meaning
Stuck here usually means
Down
Nothing heard
Not in OSPF, passive, area or timer or auth mismatch, ACL
Process-level commands. The process ID is local; the router ID must be unique.
interface GigabitEthernet0/1
ip ospf 1 area 0
ip ospf network point-to-point
ip ospf cost 10
ip ospf priority 0
ip ospf hello-interval 10
ip ospf dead-interval 40
bandwidth 100000
Interface-level commands. ip ospf area overrides a matching network statement; ip ospf cost overrides the bandwidth calculation.