OSPF
OSPF
Lecture)
📌 1. What is OSPF?
OSPF = Link-State IGP protocol.
Property Value
Administrative 110
Distance
🔥 2. Why OSPF?
Because RIP is ancient trash.
✅ Faster convergence
✅ Scalability
✅ Loop-free (LSDB architecture)
✅ Supports VLSM
✅ Auth, summarization, multi-area = enterprise-ready
Router ID (RID) Unique 32-bit value (like IP) used to identify each OSPF
router
✅ Area ID
✅ Subnet
✅ Hello/Dead timers
✅ Authentication (if configured)
✅ Stub flag
✅ MTU (optional but can cause failure)
🧩 6. Router ID Selection
Order of preference:
1. Manual RID (router-id x.x.x.x)
Broadcast ✅ ✅ Ethernet
Non-Broadcast ✅ ❌ Frame
Rela
y
Point-to-Point ❌ ❌ Serial
Point-to-Multip ❌ ❌ WAN
oint clou
ds
🌐 8. OSPF Areas
Area Type Description
Backbone Core of the OSPF domain
(Area 0)
Bandwi Cost
dth
10 10
Mbp
s
100 1
Mbp
s
1 Gbps 1 (Cisco
default)
Ty Description
p
e
No Default
n
e
Si Clear-text passwords
m (bad)
p
l
e
M Hashed passwords
D (secure)
5
Set using:
bash
CopyEdit
● ip ospf authentication
● ip ospf authentication-key 12345
● router ospf 1
● router-id 1.1.1.1
● network 192.168.1.0 0.0.0.255 area 0
bash
CopyEdit
● interface g0/0
● ip address 192.168.1.1 255.255.255.0
● ip ospf 1 area 0
2. Init
5. Exchange
6. Loading
● Area 0 = backbone