Static, Default & Floating Static Routes
CCNA 200-301 v2.0 · Live Feb 3, 2027 (v1.1 valid through Feb 2, 2027) Cisco Packet Tracer
مقصدObjectiveObjective
اس لیب میں آپ static routing سیکھیں گے: عام static route، default route، اور floating static route (backup راستہ)۔Is lab mein aap static routing seekhenge: aam static route, default route, aur floating static route (backup rasta).In this lab, you'll learn static routing: a regular static route, a default route, and a floating static route (backup path).
آسان مثالSimple AnalogySimple Analogy
Static route کا مطلب آپ خود نقشہ ہاتھ سے بناتے ہیں: 'اس محلے جانا ہے تو اس گلی سے جاؤ۔' Default route کا مطلب: 'جس پتے کا مجھے پتا نہیں، سب اس دروازے سے باہر بھیج دو' — جیسے ڈاک خانے کا باہر جانے والا بڑا دروازہ۔ Floating static route ایک backup راستہ ہے جو صرف تب استعمال ہوتا ہے جب اصل راستہ بند ہو — جیسے emergency exit۔Static route ka matlab aap khud naksha haath se banate hain: 'is mohalle jana hai to is gali se jao.' Default route ka matlab: 'jis pate ka mujhe pata nahi, sab us darwaze se bahar bhej do' — jaise dak khane ka bahar jane wala bara darwaza. Floating static route ek backup rasta hai jo sirf tab istemal hota hai jab asal rasta band ho — jaise emergency exit.A static route means you draw the map by hand: 'to reach this neighborhood, go down this street.' A default route means: 'for every address I don't know, send it all out this door' — like the post office's big exit door. A floating static route is a backup path used only when the main path is closed — like an emergency exit.
سیٹ اپLab SetupLab Setup
R1 S0/0/0 سے R2 S0/0/0 سے کنیکٹڈ (192.168.20.0/30)۔ R1 کے پیچھے PC1، R2 کے پیچھے PC2۔ ڈیوائسز: 2x راؤٹر 2911 (R1، R2)، 2x پی سی۔ PC1: 192.168.10.10/24، گیٹ وے 192.168.10.1۔ PC2: 192.168.30.10/24، گیٹ وے 192.168.30.1۔R1 S0/0/0 se R2 S0/0/0 se connected (192.168.20.0/30). R1 ke peeche PC1, R2 ke peeche PC2. Devices: 2x Router 2911 (R1, R2), 2x PC PC1: 192.168.10.10/24, gateway 192.168.10.1. PC2: 192.168.30.10/24, gateway 192.168.30.1.R1's S0/0/0 connects to R2's S0/0/0 (192.168.20.0/30). PC1 is behind R1, PC2 behind R2. Devices: 2x Router 2911 (R1, R2), 2x PCs. PC1: 192.168.10.10/24, gateway 192.168.10.1. PC2: 192.168.30.10/24, gateway 192.168.30.1.
اقداماتStepsSteps
Step 1
R1 پر static route۔ R1 کو بتاتے ہیں: 192.168.30.0 نیٹ ورک جانا ہے تو 192.168.20.2 (R2) کی طرف بھیجو۔R1 par static route. R1 ko batate hain: 192.168.30.0 network jana hai to 192.168.20.2 (R2) ki taraf bhejo.Static route on R1. We tell R1: to reach the 192.168.30.0 network, send traffic toward 192.168.20.2 (R2).
enable configure terminal
Step 2
یہی static route ہے — ہاتھ سے لکھا ہوا راستہYehi static route hai — haath se likha hua rastaThat's a static route — a hand-written path.
ip route 192.168.30.0 255.255.255.0 192.168.20.2 exit
Step 3
Default + floating static route۔ Default route (0.0.0.0) ہر unknown destination کو R2 کی طرف بھیجتا ہے۔Default + floating static route. Default route (0.0.0.0) har unknown destination ko R2 ki taraf bhejta hai.Default + floating static route. The default route (0.0.0.0) sends every unknown destination toward R2.
enable configure terminal ip route 0.0.0.0 0.0.0.0 192.168.20.2
Step 4
Floating route میں آخر میں 10 AD ہے — normal static (AD 1) سے کم بھروسہ، صرف backup کے لیےFloating route mein aakhir mein 10 AD hai — normal static (AD 1) se kam bharosa, sirf backup ke liyeThe floating route ends with AD 10 — less trusted than a normal static (AD 1), for backup only.
ip route 192.168.30.0 255.255.255.0 192.168.20.2 10 exit
Step 5
ٹیسٹنگ: PC1 سے ping 192.168.30.10 — R1 کا static route کام کرنا چاہیے۔Testing: PC1 se ping 192.168.30.10 — R1 ka static route kaam karna chahiye.Testing: from PC1, ping 192.168.30.10 — R1's static route should work.
Step 6
R2 پر بھی واپسی کا route ہونا چاہیے (192.168.10.0 via 192.168.20.1) ورنہ reply واپس نہیں آئے گا۔R2 par bhi wapsi ka route hona chahiye (192.168.10.0 via 192.168.20.1) warna reply wapas nahi aayega.R2 must also have the return route (192.168.10.0 via 192.168.20.1), otherwise the reply won't come back.
تصدیقVerifyVerify
show ip route | include S سے static routes دیکھو۔ S* کا مطلب candidate default route ہے۔show ip route | include S se static routes dekho. S* ka matlab candidate default route hai.Check static routes with show ip route | include S. S* means candidate default route.
show ip route show ip route static
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ پنگ ایک طرف سے جاتا ہے لیکن reply نہیں آتا۔Ping ek taraf se jata hai lekin reply nahi aata.Ping goes one way but no reply comes back.
✅ روٹنگ دونوں طرف ہونی چاہیے۔ R2 پر بھی ip route 192.168.10.0 255.255.255.0 192.168.20.1 لگاؤ۔Routing dono taraf honi chahiye. R2 par bhi ip route 192.168.10.0 255.255.255.0 192.168.20.1 lagao.Routing must exist on both sides. On R2 also add ip route 192.168.10.0 255.255.255.0 192.168.20.1.
⚠️ Static route لگانے کے بعد بھی کام نہیں کر رہا۔Static route lagane ke baad bhi kaam nahi kar raha.Still not working after adding the static route.
✅ Next-hop IP اسی subnet کا ہونا چاہیے جو directly connected ہے۔ show ip route سے connected چیک کرو۔Next-hop IP usi subnet ka hona chahiye jo directly connected hai. show ip route se connected check karo.The next-hop IP must be in a directly connected subnet. Check the connected routes with show ip route.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ Default route کب استعمال ہوتا ہے؟Default route kab istemal hota hai?When is a default route used?
Default route 0.0.0.0/0 ہر اس destination کے لیے ہے جس کا کوئی specific route نہیں۔ عام طور پر انٹرنیٹ کی طرف لگایا جاتا ہے۔Default route 0.0.0.0/0 har us destination ke liye hai jiska koi specific route nahi. Aam tor par internet ki taraf lagaya jata hai.The default route 0.0.0.0/0 is for every destination with no specific route. It's usually pointed toward the internet.
❓ Floating static route کیا ہے؟Floating static route kya hai?What is a floating static route?
Floating static route میں زیادہ AD (جیسے 10) سیٹ کرتے ہیں تاکہ یہ صرف backup رہے۔ جب primary route (کم AD) غائب ہو تو یہ routing table میں آ جاتا ہے۔Floating static route mein zyada AD (jaise 10) set karte hain taake ye sirf backup rahe. Jab primary route (kam AD) ghaib ho to ye routing table mein aa jata hai.In a floating static route, you set a higher AD (like 10) so it stays as backup only. When the primary route (lower AD) disappears, it enters the routing table.