Multi-Area OSPF
CCNP ENCOR 350-401 v1.2 EVE-NG / GNS3
مقصدObjectiveObjective
اس لیب میں آپ ملٹی ایریا OSPF کانفگر کرنا سیکھیں گے — ABR کا کانسیپٹ اور inter-area روٹنگ۔Is lab mein aap multi-area OSPF configure karna seekhenge — ABR ka concept aur inter-area routing.In this lab you will learn to configure multi-area OSPF — the ABR concept and inter-area routing.
آسان مثالSimple AnalogySimple Analogy
Single-area OSPF میں پورا شہر ایک ہی نقشہ ہے۔ لیکن بڑا شہر ہو تو اسے علاقوں (areas) میں بانٹتے ہیں — ہر علاقے کا اپنا چھوٹا نقشہ، اور درمیان میں ایک مرکزی علاقہ (Area 0, backbone) جو سب کو جوڑتا ہے۔ ABR وہ ڈاک خانہ ہے جو دو علاقوں کے بارڈر پر ہے اور دونوں کے نقشے رکھتا ہے۔Single-area OSPF mein poora sheher ek hi naksha hai. Lekin bara sheher ho to use ilaqon (areas) mein baant-te hain — har ilaqe ka apna chhota naksha, aur darmiyan mein ek markazi ilaqa (Area 0, backbone) jo sab ko jorta hai. ABR woh dak khana hai jo do ilaqon ke border par hai aur dono ke nakshe rakhta hai.In single-area OSPF the whole city is one map. But a big city is divided into districts (areas) — each district has its own small map, and in the middle a central district (Area 0, the backbone) connects them all. An ABR is the post office on the border of two districts that keeps both maps.
سیٹ اپLab SetupLab Setup
R1 (Area 1+0) — R2 (Area 0+2) — R3 (Area 2)۔ R1 کے پیچھے PC1، R3 کے پیچھے PC2۔ ڈیوائسز: 3x روٹر 2911 (R1, R2, R3)، 2x پی سی۔ PC1: 192.168.10.10/24 (Area 1)۔ PC2: 192.168.30.10/24 (Area 2)۔R1 (Area 1+0) — R2 (Area 0+2) — R3 (Area 2). R1 ke peeche PC1, R3 ke peeche PC2. Devices: 3x Router 2911 (R1, R2, R3), 2x PC PC1: 192.168.10.10/24 (Area 1). PC2: 192.168.30.10/24 (Area 2).R1 (Area 1+0) — R2 (Area 0+2) — R3 (Area 2). PC1 behind R1, PC2 behind R3. Devices: 3x Router 2911 (R1, R2, R3), 2x PC. PC1: 192.168.10.10/24 (Area 1). PC2: 192.168.30.10/24 (Area 2).
اقداماتStepsSteps
Step 1
R1 (ABR): Area 1 + Area 0۔ R1 دو areas میں ہے — اس لیے ABR ہے۔ LAN Area 1 میں، WAN Area 0 (backbone) میں۔R1 (ABR): Area 1 + Area 0. R1 do areas mein hai — is liye ABR hai. LAN Area 1 mein, WAN Area 0 (backbone) mein.R1 (ABR): Area 1 + Area 0. R1 is in two areas — so it is an ABR. LAN in Area 1, WAN in Area 0 (backbone).
enable configure terminal router ospf 1 router-id 1.1.1.1 network 192.168.10.0 0.0.0.255 area 1
Step 2
ہر area کا اپنا link-state ڈیٹابیس ہوتا ہے۔Har area ka apna link-state database hota haiEach area has its own link-state database.
network 192.168.20.0 0.0.0.255 area 0 exit
Step 3
R2 (ABR): Area 0 + Area 2۔ R2 بھی ABR ہے — Area 0 اور Area 2 کے درمیان۔R2 (ABR): Area 0 + Area 2. R2 bhi ABR hai — Area 0 aur Area 2 ke darmiyan.R2 (ABR): Area 0 + Area 2. R2 is also an ABR — between Area 0 and Area 2.
enable configure terminal router ospf 1 router-id 2.2.2.2 network 192.168.20.0 0.0.0.255 area 0
Step 4
Area 1 کا روٹ Area 2 تک backbone کے ذریعے جائے گا۔Area 1 ka route Area 2 tak backbone ke through jayegaArea 1's route will reach Area 2 through the backbone.
network 192.168.30.0 0.0.0.255 area 2 exit
Step 5
ٹیسٹنگ: PC1 سے PC2 پنگ کریں — Area 1 سے Area 2 تک backbone کے ذریعے جانا چاہیے۔Testing: PC1 se PC2 ping karo — Area 1 se Area 2 tak backbone ke through jana chahiye.Testing: ping PC2 from PC1 — it should go from Area 1 to Area 2 through the backbone.
Step 6
show ip route میں O IA روٹس دیکھیں۔show ip route mein O IA routes dekho.Look for O IA routes in show ip route.
تصدیقVerifyVerify
show ip ospf neighbor اور show ip route میں O IA (inter-area) روٹس دیکھیں۔show ip ospf neighbor aur show ip route mein O IA (inter-area) routes dekho.Look for O IA (inter-area) routes in show ip ospf neighbor and show ip route.
show ip ospf neighbor show ip route
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ دو areas کے درمیان روٹس نہیں آ رہے۔Do areas ke darmiyan routes nahi aa rahe.Routes are not coming between the two areas.
✅ ہر non-backbone area سیدھا Area 0 سے جڑنا چاہیے۔ Area 1 کو Area 2 سے سیدھا مت جوڑیں۔Har non-backbone area seedha Area 0 se jurna chahiye. Area 1 ko Area 2 se seedha mat joro.Every non-backbone area must connect directly to Area 0. Don't connect Area 1 directly to Area 2.
⚠️ سمجھ نہیں آ رہا کون سا روٹر ABR ہے۔Samajh nahi aa raha kaunsa router ABR hai.Can't figure out which router is the ABR.
✅ ABR وہی ہے جو دو areas میں ہو۔ صرف ایک area میں ہو تو ABR نہیں۔ABR wohi hai jo do areas mein ho. Sirf ek area mein ho to ABR nahi.An ABR is the one in two areas. If it's in only one area, it's not an ABR.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ Area 0 کیوں ضروری ہے؟Area 0 kyun zaroori hai?Why is Area 0 necessary?
Area 0 backbone ہے — ہر area اسی سے جڑنا چاہیے۔ اس سے ٹوپولوجی چھوٹی رہتی ہے اور updates کم ہوتے ہیں۔Area 0 backbone hai — har area isi se jurna chahiye. Is se topology chhoti rehti hai aur updates kam hote hain.Area 0 is the backbone — every area must connect to it. This keeps the topology small and reduces updates.