OSPFv3 Basics

CCNA 200-301 v2.0 · Live Feb 3, 2027 (v1.1 valid through Feb 2, 2027) Cisco Packet Tracer

مقصدObjectiveObjective

اس لیب میں آپ OSPFv3 کانفیگر کرنا سیکھیں گے — IPv6 کے لیے OSPF۔ v2.0 سلیبس میں یہ نیا اور اہم ٹاپک ہے۔Is lab mein aap OSPFv3 configure karna seekhenge — IPv6 ke liye OSPF. v2.0 syllabus mein ye naya aur ahem topic hai.In this lab you'll configure OSPFv3 — OSPF for IPv6. It's a new and important topic in the v2.0 syllabus.

آسان مثالSimple AnalogySimple Analogy

OSPFv2 IPv4 کے لیے تھا۔ OSPFv3 وہی پروٹوکول ہے لیکن IPv6 کے لیے — جیسے پرانی کتاب کا نیا ایڈیشن۔ فرق صرف اتنا ہے کہ commands میں 'ipv6' آتا ہے اور router-id اب بھی IPv4 سٹائل (1.1.1.1) میں لکھی جاتی ہے۔ v2.0 میں OSPFv3 واضح طور پر شامل ہے، اس لیے یہ لیب ضروری ہے۔OSPFv2 IPv4 ke liye tha. OSPFv3 wohi protocol hai lekin IPv6 ke liye — jaise purani kitaab ka naya edition. Farq sirf itna hai ke commands mein 'ipv6' aata hai aur router-id ab bhi IPv4 style (1.1.1.1) mein likhi jati hai. v2.0 mein OSPFv3 wazeh tor par shamil hai, is liye ye lab zaroori hai.OSPFv2 was for IPv4. OSPFv3 is the same protocol but for IPv6 — like a new edition of an old book. The only difference: commands use 'ipv6', and the router-id is still written in IPv4 style (1.1.1.1). OSPFv3 is clearly included in v2.0, so this lab is essential.

سیٹ اپLab SetupLab Setup

R1 S0/0/0 سے R2 S0/0/0 (2001:db8:acad:12::/64)۔ دونوں area 0 میں۔ Devices: 2x Router 2911 (R1, R2), 2x PC۔ PC1: 2001:db8:acad:1::10/64، گیٹ وے 2001:db8:acad:1::1۔ PC2: 2001:db8:acad:2::10/64، گیٹ وے 2001:db8:acad:2::1۔R1 S0/0/0 se R2 S0/0/0 (2001:db8:acad:12::/64). Dono area 0 mein. Devices: 2x Router 2911 (R1, R2), 2x PC PC1: 2001:db8:acad:1::10/64, gateway 2001:db8:acad:1::1. PC2: 2001:db8:acad:2::10/64, gateway 2001:db8:acad:2::1.R1 S0/0/0 to R2 S0/0/0 (2001:db8:acad:12::/64). Both in area 0. Devices: 2x Router 2911 (R1, R2), 2x PC. PC1: 2001:db8:acad:1::10/64, gateway 2001:db8:acad:1::1. PC2: 2001:db8:acad:2::10/64, gateway 2001:db8:acad:2::1.

اقداماتStepsSteps

Step 1

R1 پر OSPFv3۔ پہلے IPv6 routing آن کرو۔R1 par OSPFv3. Pehle IPv6 routing on karo.OSPFv3 on R1. First enable IPv6 routing.

enable
configure terminal
ipv6 unicast-routing

Step 2

پھر ipv6 router ospf سے process بناؤ اور router-id دو۔Phir ipv6 router ospf se process banao aur router-id do.Then create the process with ipv6 router ospf and assign a router-id.

ipv6 router ospf 1
router-id 1.1.1.1
exit

Step 3

فرق: network command نہیں — ہر interface پر جا کر ipv6 ospf 1 area 0 لگاتے ہیں۔Farq: network command nahi — har interface par ja kar ipv6 ospf 1 area 0 lagate hainDifference: no network command — you enable ipv6 ospf 1 area 0 on each interface directly.

interface g0/0
ipv6 ospf 1 area 0
exit
interface s0/0/0
ipv6 ospf 1 area 0
exit

Step 4

R2 پر OSPFv3۔ R2 پر بھی وہی — الگ router-id، interfaces پر area 0۔R2 par OSPFv3. R2 par bhi same — alag router-id, interfaces par area 0.OSPFv3 on R2. Same on R2 — a different router-id, area 0 on the interfaces.

enable
configure terminal
ipv6 unicast-routing
ipv6 router ospf 1
router-id 2.2.2.2
exit
interface s0/0/0
ipv6 ospf 1 area 0
exit
interface g0/0
ipv6 ospf 1 area 0
exit

Step 5

Neighbor adjacency link-local addresses پر بنتی ہے۔ Testing: show ipv6 ospf neighbor سے FULL adjacency دیکھو۔Neighbor adjacency link-local addresses par banti hai Testing: show ipv6 ospf neighbor se FULL adjacency dekho.Neighbor adjacency forms over link-local addresses. Testing: check FULL adjacency with show ipv6 ospf neighbor.

Step 6

PC1 سے ping 2001:db8:acad:2::10 کرو — OSPFv3 کے ذریعے جانا چاہیے۔PC1 se ping 2001:db8:acad:2::10 karo — OSPFv3 ke through jana chahiye.Ping 2001:db8:acad:2::10 from PC1 — it should go through OSPFv3.

تصدیقVerifyVerify

show ipv6 ospf neighbor اور show ipv6 route سے تصدیق کرو۔show ipv6 ospf neighbor aur show ipv6 route se tasdeeq karo.Verify with show ipv6 ospf neighbor and show ipv6 route.

show ipv6 ospf neighbor
show ipv6 route

خرابی دور کرناTroubleshootingTroubleshooting

⚠️ OSPFv3 neighbor نہیں بن رہا۔OSPFv3 neighbor nahi ban raha.OSPFv3 neighbor won't form.

✅ ipv6 unicast-routing کے بغیر OSPFv3 کام نہیں کرتا۔ پہلے یہ command لگاؤ۔ipv6 unicast-routing ke baghair OSPFv3 kaam nahi karta. Pehle ye command lagao.OSPFv3 doesn't work without ipv6 unicast-routing. Apply that command first.

⚠️ ipv6 router ospf command کے بعد error آ رہا ہے۔ipv6 router ospf command ke baad error aa raha hai.Getting an error after the ipv6 router ospf command.

✅ OSPFv3 میں router-id IPv4 فارمیٹ میں چاہیے (جیسے 1.1.1.1)، ورنہ process شروع نہیں ہوتا۔OSPFv3 mein router-id IPv4 format mein chahiye (jaise 1.1.1.1), warna process start nahi hota.OSPFv3 needs the router-id in IPv4 format (like 1.1.1.1), otherwise the process won't start.

انٹرویو سوالاتInterview Q&AInterview Q&A

❓ OSPFv2 اور OSPFv3 میں فرق؟OSPFv2 aur OSPFv3 mein farq?What's the difference between OSPFv2 and OSPFv3?

OSPFv2 صرف IPv4 کے لیے، OSPFv3 IPv6 کے لیے (اور address families سے IPv4 بھی)۔ OSPFv3 میں network command نہیں — interface پر براہِ راست enable ہوتا ہے۔OSPFv2 sirf IPv4 ke liye, OSPFv3 IPv6 ke liye (aur address families se IPv4 bhi). OSPFv3 mein network command nahi — interface par directly enable hota hai.OSPFv2 is only for IPv4; OSPFv3 is for IPv6 (and IPv4 via address families). OSPFv3 has no network command — it's enabled directly on the interface.