Pcornel
Networking · Network & Protocols

OSPF Protocol Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=6247

Back to the Topic

Answer

OSPF is a link-state routing protocol: routers form adjacencies, exchange a description of every link in their area, and each computes the shortest paths itself. The topics here cover its packets, states and LSA types.

Remember

Neighbours must agree on area, subnet, hello and dead timers, authentication, area type and MTU. Full is the normal final state — or 2-Way between two non-designated routers on a LAN. Stuck in ExStart or Exchange usually means MTU. Areas connect through area 0.

First checks

  • show ip ospf neighbor — neighbours with state and role.
  • show ip ospf interface brief — OSPF interfaces with area, cost and state.
  • show ip ospf interface <interface> — timers, network type, authentication.
  • show ip ospf database — the LSAs by type and area.
  • show ip route ospf — the routes OSPF installed.
  • show ip protocols — router ID, networks and redistribution.

Verify in this order

interface in OSPF, not passive → hellos match → 2-Way → database exchange → Full → LSAs in the database → shortest path computed → route installed

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6247

Confirmation

Confirm action

Continue?