🛰️ OSPF (Open Shortest Path First)
🛰️ OSPF (Open Shortest Path First)
🧠 Top 5 Key Points about OSPF
-
Link-State Protocol → OSPF shares detailed information about network topology (not just hop count).
-
Metric: Uses cost, calculated based on bandwidth (higher bandwidth = lower cost).
-
Fast Convergence: Quickly detects and adapts to network changes.
-
Supports VLSM & CIDR: Fully classless, allowing subnet flexibility.
-
Area-Based Design: Supports hierarchical networks (Area 0 = Backbone, others connect to it).
⚙️ Additional Notes
-
Works at Layer 3 (Network Layer) of the OSI model.
-
Uses Dijkstra’s SPF (Shortest Path First) algorithm.
-
Multicast addresses:
-
224.0.0.5 → All OSPF routers
-
224.0.0.6 → Designated Router (DR) and Backup DR
-
🧰 OSPF Lab in Cisco Packet Tracer
🎯 Goal:
Configure OSPF routing between three routers so that all connected PCs can communicate.
🖥️ Network Topology
IP Address Plan
| Device | Interface | IP Address | Network |
|---|---|---|---|
| R1 | G0/0 | 192.168.1.1 | 192.168.1.0/24 |
| S0/0/0 | 10.0.0.1 | 10.0.0.0/30 | |
| R2 | S0/0/0 | 10.0.0.2 | 10.0.0.0/30 |
| S0/0/1 | 10.0.0.5 | 10.0.0.4/30 | |
| R3 | S0/0/1 | 10.0.0.6 | 10.0.0.4/30 |
| G0/0 | 192.168.2.1 | 192.168.2.0/24 | |
| PC1 | NIC | 192.168.1.10 | 192.168.1.0/24 |
| PC2 | NIC | 192.168.2.10 | 192.168.2.0/24 |
🪜 Step-by-Step Configuration
Step 1: Configure IP Addresses
🔹 Router R1
🔹 Router R2
🔹 Router R3
Step 2: Configure OSPF
We’ll use Process ID 1 and Area 0 (backbone area).
🔹 R1
🔹 R2
🔹 R3
Step 3: Verify OSPF Configuration
Use the following commands to verify:
➡ Shows OSPF neighbor relationships.
➡ Displays routes learned via OSPF (marked with “O”).
➡ Confirms OSPF is active on interfaces.
Step 4: Test Connectivity
-
Go to PC1 → Command Prompt
Type:
✅ If replies are successful, OSPF routing works!
🧠 What You Learned
| Concept | Description |
|---|---|
| OSPF Type | Link-State Protocol |
| Algorithm | Dijkstra’s SPF |
| Metric | Cost (based on bandwidth) |
| Area 0 | Backbone area for OSPF domains |
| Neighbor Discovery | Formed using Hello packets (224.0.0.5) |
💬 Summary
“OSPF is smarter than RIP — it builds a map of the entire network and chooses the fastest route based on cost, not just hop count.”
Comments
Post a Comment