اس تھیوری لیب میں آپ 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).
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).

تین راؤٹرز: 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.
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 routershow ip ospf database networkLSA ٹائپ 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 summaryshow ip ospf database asbr-summaryLSA ٹائپ 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 externalshow ip ospf database nssa-externalStub ایریا بنائیں۔ ایریا 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 terminalrouter ospf 1area 1 stubexitTotally 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 terminalrouter ospf 1area 1 stub no-summaryexitتصدیق کریں۔ 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 databaseshow ip route ospfStub ایریا میں 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 databaseshow ip route ospf