Pcornel
Networking · Infrastructure

OSPF Tuning & Optimization

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

Back to the Topic

Answer

OSPF tuning adjusts cost (reference bandwidth or per-interface cost), timers, passive interfaces, network type and default-route origination to control path choice, convergence and overhead.

Remember

Default reference bandwidth is 100 Mb/s, so 100M, 1G and 10G links all cost 1 — set auto-cost reference-bandwidth 100000 (or higher) on every router. Use passive-interface default and enable only links to neighbours. Point-to-point network type on Ethernet links removes DR/BDR election. Use BFD rather than very short hello timers.

First checks

  • show ip ospf interface brief — cost per interface.
  • show ip route <prefix> — total cost in brackets [110/cost].
  • show ip ospf | include Reference — reference bandwidth.
  • show running-config | include auto-cost|ip ospf cost — what is configured.

Commands

ip ospf cost
ip ospf dead-interval minimal hello-multiplier 4
ip ospf bfd
ip ospf network point-to-point
show ip ospf interface brief

Verify in this order

reference bandwidth the same on all routers → interface costs reflect speed or intent → SPF sums cost along each path → lowest total installed → equal totals shared

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

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

Confirmation

Confirm action

Continue?