OSPF Review: LSAs & Area Types
CCNP ENARSI 300-410 EVE-NG / GNS3
مقصدObjectiveObjective
اس تھیوری لیب میں آپ OSPF کے LSA ٹائپس 1 تا 7 اور ایریا ٹائپس (stub، totally stubby، NSSA) کا جائزہ لیں گے۔Is theory lab mein aap OSPF ke LSA types 1 ta 7 aur area types (stub, totally stubby, NSSA) ka jaiza lenge.In this theory lab you will review OSPF LSA types 1–7 and area types (stub, totally stubby, NSSA).
آسان مثالSimple AnalogySimple Analogy
LSA ایسے ہیں جیسے شہر کا نقشہ — ہر قسم کا LSA نقشے کی ایک الگ تہہ ہے: گلیاں (Type 1)، چوراہے (Type 2)، دوسرے محلوں کے راستے (Type 3)، اور باہر کے شہروں کے راستے (Type 5)۔ Stub ایریا ایسا محلہ ہے جہاں باہر کے شہروں کا تفصیلی نقشہ نہیں رکھا جاتا، بس ایک مرکزی گیٹ (default route) ہوتا ہے۔LSA aise hain jaise sheher ka naqsha — har qism ka LSA naqshe ki ek alag teh hai: galiyan (Type 1), chorahe (Type 2), doosre mahallon ke raste (Type 3), aur bahar ke shehron ke raste (Type 5). Stub area aisa mahalla hai jahan bahar ke shehron ka tafseeli naqsha nahi rakha jata, bas ek markazi gate (default route) hota hai.LSAs are like a city map — each LSA type is a layer of the map: streets (Type 1), intersections (Type 2), routes to other districts (Type 3), and routes to outside cities (Type 5). A stub area is a district that doesn't keep the detailed outside-city map, just one main gate (default route).
سیٹ اپLab SetupLab Setup
تین راؤٹرز: R1 ایریا 0 میں، R2 ایریا 1 میں (ABR)، R3 ایریا 1 میں۔ OSPF پہلے سے چل رہا ہے۔ اس لیب میں زیادہ تر show کمانڈز سے LSA ڈیٹا بیس کا مشاہدہ کریں گے۔Teen routers: R1 area 0 mein, R2 area 1 mein (ABR), R3 area 1 mein. OSPF pehle se chal raha hai. Is lab mein zyada tar show commands se LSA database ka mushahida karenge.Three routers: R1 in area 0, R2 in area 1 (ABR), R3 in area 1. OSPF is already running. In this lab you will mostly observe the LSA database with show commands.
اقداماتStepsSteps
Step 1
LSA ٹائپ 1 اور 2 دیکھیں۔ Type 1 (Router LSA) ہر راؤٹر اپنے ایریا کے اندر بناتا ہے۔ Type 2 (Network LSA) DR بناتا ہے multi-access نیٹ ورک کے لیے۔ show ip ospf database سے دونوں دیکھیں۔LSA type 1 aur 2 dekhein. Type 1 (Router LSA) har router apne area ke andar banata hai. Type 2 (Network LSA) DR banata hai multi-access network ke liye. show ip ospf database se dono dekhein.Look at LSA types 1 and 2. Type 1 (Router LSA) is built by every router inside its area. Type 2 (Network LSA) is built by the DR for multi-access networks. See both with show ip ospf database.
show ip ospf database router show ip ospf database network
Step 2
LSA ٹائپ 3 اور 4 سمجھیں۔ Type 3 (Summary LSA) ABR دوسرے ایریاز کے راستوں کے لیے بناتا ہے۔ Type 4 بتاتا ہے کہ ASBR کہاں ہے۔ یہ دونوں inter-area معلومات ہیں۔LSA type 3 aur 4 samjhein. Type 3 (Summary LSA) ABR doosre areas ke raston ke liye banata hai. Type 4 batata hai ke ASBR kahan hai. Ye dono inter-area maloomat hain.Understand LSA types 3 and 4. Type 3 (Summary LSA) is created by the ABR for routes from other areas. Type 4 tells where the ASBR is. Both are inter-area information.
show ip ospf database summary show ip ospf database asbr-summary
Step 3
LSA ٹائپ 5 اور 7 دیکھیں۔ Type 5 (External LSA) ASBR باہر کے (redistributed) راستوں کے لیے بناتا ہے اور پورے OSPF ڈومین میں پھیلتا ہے۔ Type 7 وہی کام NSSA ایریا کے اندر کرتا ہے، پھر ABR اسے Type 5 میں بدل دیتا ہے۔LSA type 5 aur 7 dekhein. Type 5 (External LSA) ASBR bahar ke (redistributed) raston ke liye banata hai aur poore OSPF domain mein phelta hai. Type 7 wohi kaam NSSA area ke andar karta hai, phir ABR ise Type 5 mein badal deta hai.Look at LSA types 5 and 7. Type 5 (External LSA) is created by the ASBR for outside (redistributed) routes and floods the whole OSPF domain. Type 7 does the same job inside an NSSA area, then the ABR translates it to Type 5.
show ip ospf database external show ip ospf database nssa-external
Step 4
Stub ایریا بنائیں۔ ایریا 1 کو stub بنانے سے Type 5 LSAs اندر نہیں آئیں گے — ABR ایک default route دے گا۔ دونوں راؤٹرز (R2 اور R3) پر area 1 stub لگانا ضروری ہے۔Stub area banayein. Area 1 ko stub banane se Type 5 LSAs andar nahi aayenge — ABR ek default route dega. Dono routers (R2 aur R3) par area 1 stub lagana zaroori hai.Create a stub area. Making area 1 stub stops Type 5 LSAs from entering — the ABR injects a default route instead. Both routers (R2 and R3) need area 1 stub.
configure terminal router ospf 1 area 1 stub exit
Step 5
Totally stubby اور NSSA میں فرق دیکھیں۔ area 1 stub no-summary سے Type 3 بھی رک جاتے ہیں (totally stubby)۔ NSSA میں Type 7 کی اجازت ہوتی ہے تاکہ ایریا کے اندر ASBR رہ سکے۔Totally stubby aur NSSA mein farq dekhein. area 1 stub no-summary se Type 3 bhi ruk jate hain (totally stubby). NSSA mein Type 7 ki ijazat hoti hai taake area ke andar ASBR reh sake.See the difference between totally stubby and NSSA. area 1 stub no-summary also blocks Type 3 (totally stubby). NSSA allows Type 7 so an ASBR can live inside the area.
configure terminal router ospf 1 area 1 stub no-summary exit
Step 6
تصدیق کریں۔ show ip ospf database سے دیکھیں کہ stub ایریا میں کون سے LSA ٹائپس باقی ہیں۔ R3 پر show ip route ospf میں O*IA default route نظر آنا چاہیے۔Tasdeeq karein. show ip ospf database se dekhein ke stub area mein kaun se LSA types baqi hain. R3 par show ip route ospf mein O*IA default route nazar aana chahiye.Verify. Use show ip ospf database to see which LSA types remain in the stub area. On R3, show ip route ospf should show an O*IA default route.
show ip ospf database show ip route ospf
تصدیقVerifyVerify
Stub ایریا میں Type 5 LSA غائب ہوں، اور R3 کی routing table میں ABR کی طرف سے default route موجود ہو۔Stub area mein Type 5 LSA ghaib hon, aur R3 ki routing table mein ABR ki taraf se default route mojood ho.Type 5 LSAs should be absent in the stub area, and R3's routing table should have a default route from the ABR.
show ip ospf database show ip route ospf
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ Stub کنفیگر کرنے کے بعد adjacency down ہو گئی۔Stub configure karne ke baad adjacency down ho gayi.Adjacency went down after configuring stub.
✅ Stub flag hello پیکٹس میں ہوتی ہے — دونوں نیبرز پر ایک جیسی ہونی چاہیے۔ جس راؤٹر پر stub لگایا، اس کے نیبر پر بھی لگائیں۔Stub flag hello packets mein hoti hai — dono neighbors par ek jaisi honi chahiye. Jis router par stub lagaya, us ke neighbor par bhi lagayein.The stub flag is in hello packets — it must match on both neighbors. Apply stub on the neighbor too.
⚠️ NSSA میں Type 7 نظر آ رہا ہے مگر Type 5 میں translate نہیں ہو رہا۔NSSA mein Type 7 nazar aa raha hai magar Type 5 mein translate nahi ho raha.Type 7 is visible in the NSSA but not translated to Type 5.
✅ صرف ایک ABR translator بنتا ہے (سب سے زیادہ router-ID والا)۔ چیک کریں کہ ABR پر area 1 nssa لگا ہے اور وہی translator ہے۔Sirf ek ABR translator banta hai (sab se zyada router-ID wala). Check karein ke ABR par area 1 nssa laga hai aur wohi translator hai.Only one ABR becomes the translator (highest router-ID). Confirm area 1 nssa is on the ABR and that it is the translator.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ Stub، totally stubby، اور NSSA ایریا میں کیا فرق ہے؟Stub, totally stubby, aur NSSA area mein kya farq hai?What is the difference between stub, totally stubby, and NSSA areas?
Stub میں Type 5 نہیں آتا (default route ملتا ہے)۔ Totally stubby میں Type 3 اور 5 دونوں نہیں آتے۔ NSSA میں Type 7 کی اجازت ہوتی ہے تاکہ اندر ASBR ہو سکے۔Stub mein Type 5 nahi aata (default route milta hai). Totally stubby mein Type 3 aur 5 dono nahi aate. NSSA mein Type 7 ki ijazat hoti hai taake andar ASBR ho sake.Stub blocks Type 5 (gets a default route). Totally stubby blocks Types 3 and 5. NSSA permits Type 7 so an ASBR can exist inside.
❓ Type 3 اور Type 5 LSA میں کیا فرق ہے؟Type 3 aur Type 5 LSA mein kya farq hai?What is the difference between Type 3 and Type 5 LSAs?
Type 3 ABR بناتا ہے دوسرے OSPF ایریاز کے راستوں کے لیے۔ Type 5 ASBR بناتا ہے OSPF کے باہر سے آئے (redistributed) راستوں کے لیے۔Type 3 ABR banata hai doosre OSPF areas ke raston ke liye. Type 5 ASBR banata hai OSPF ke bahar se aaye (redistributed) raston ke liye.Type 3 is created by the ABR for routes from other OSPF areas. Type 5 is created by the ASBR for routes from outside OSPF (redistributed).