📝 Section Review: Switching & VLANs
اہم نکاتKey TakeawaysKey Takeaways
- VLAN ایک logical broadcast domain ہے — ایک سوئچ کئی الگ سوئچز جیسا کام کر سکتا ہے۔VLAN aik logical broadcast domain hai — aik switch kai alag switches jaisa kaam kar sakta hai.A VLAN is a logical broadcast domain — one switch can act like several separate switches.
- Access پورٹس ایک VLAN کو serve کرتے ہیں؛ trunk پورٹس 802.1Q tags سے کئی VLANs کا ٹریفک اٹھاتے ہیں۔Access ports aik VLAN ko serve karte hain; trunk ports 802.1Q tags se kai VLANs ka traffic uthate hain.Access ports serve one VLAN; trunk ports carry many VLANs using 802.1Q tags.
- Native VLAN ٹرنک پر untagged VLAN ہوتا ہے — یہ دونوں سرے پر ایک جیسا ہونا چاہیے۔Native VLAN trunk par untagged VLAN hota hai — ye dono siray par same hona chahiye.The native VLAN is the untagged VLAN on a trunk — it must match on both ends.
- Router-on-a-stick ہر VLAN کے لیے sub-interfaces والے ایک ہی راؤٹر انٹرفیس سے VLANs کے درمیان روٹنگ کرتا ہے۔Router-on-a-stick har VLAN ke liye sub-interfaces wale aik hi router interface se VLANs ke darmiyan routing karta hai.Router-on-a-stick routes between VLANs using one router interface with sub-interfaces per VLAN.
- ٹرنک پر صرف ضروری VLANs allow کریں — یہ risk کم کرنے کا ایک simple step ہے۔Trunk par sirf zaroori VLANs allow karein — ye risk kam karne ka aik simple step hai.Limit trunk allowed VLANs to only what is needed — a simple hygiene step that reduces risk.
خود جانچ (مشق)Self-Check (Practice)Self-Check (Practice)
یہ مشقی سوالات ہیں، امتحانی سوالات نہیں۔These are practice questions, not exam questions.These are practice questions, not exam questions.
❓ Practice: VLAN کیا ہے، اور کیا مختلف VLANs کے ڈیوائسز راؤٹر کے بغیر بات کر سکتے ہیں؟Practice: VLAN kya hai, aur kya mukhtalif VLANs ke devices router ke baghair baat kar sakte hain?Practice: What is a VLAN, and can devices in different VLANs talk without a router?
Practice: VLAN ایک physical سوئچ کو کئی logical نیٹ ورکس میں تقسیم کرتا ہے۔ مختلف VLANs کے ڈیوائسز راؤٹر کے بغیر آپس میں بات نہیں کر سکتے۔Practice: VLAN aik physical switch ko kai logical networks mein taqseem karta hai. Mukhtalif VLANs ke devices router ke baghair aapas mein baat nahi kar sakte.Practice: VLANs divide one physical switch into multiple logical networks. Devices in different VLANs cannot talk without a router.
❓ Practice: Access پورٹ اور trunk پورٹ میں کیا فرق ہے؟Practice: Access port aur trunk port mein kya farq hai?Practice: What is the difference between an access port and a trunk port?
Practice: Access پورٹ صرف ایک VLAN کا ٹریفک اٹھاتا ہے۔ Trunk پورٹ 802.1Q tags کے ذریعے کئی VLANs کا ٹریفک اٹھاتا ہے۔Practice: Access port sirf aik VLAN ka traffic uthata hai. Trunk port 802.1Q tags ke zariye kai VLANs ka traffic uthata hai.Practice: An access port carries traffic of only one VLAN. A trunk port carries traffic of multiple VLANs using 802.1Q tags.
❓ Practice: Native VLAN کیا ہے، اور ٹرنک کے دونوں سرے پر ایک جیسا کیوں ہونا چاہیے؟Practice: Native VLAN kya hai, aur trunk ke dono siray par same kyun hona chahiye?Practice: What is the native VLAN, and why must it match on both ends of a trunk?
Practice: Native VLAN ٹرنک پر untagged VLAN ہوتا ہے (بائی ڈیفالٹ VLAN 1)۔ Native VLAN ٹرنک کے دونوں سرے پر ایک جیسا ہونا چاہیے ورنہ mismatch ہو جاتا ہے۔Practice: Native VLAN trunk par untagged VLAN hota hai (by default VLAN 1). Native VLAN trunk ke dono siray par same hona chahiye warna mismatch ho jata hai.Practice: Native VLAN is the untagged VLAN on a trunk (VLAN 1 by default). Native VLAN must match on both ends of the trunk or you get a mismatch.
❓ Practice: Router-on-a-stick VLANs کے درمیان ٹریفک کی روٹنگ کیسے کرتا ہے؟Practice: Router-on-a-stick VLANs ke darmiyan traffic ki routing kaise karta hai?Practice: How does router-on-a-stick route traffic between VLANs?
Practice: Router-on-a-stick میں ایک ہی physical راؤٹر انٹرفیس پر ہر VLAN کے لیے sub-interface بنتا ہے، اور single trunk پر VLANs کے درمیان روٹنگ ہوتی ہے۔Practice: Router-on-a-stick mein aik hi physical router interface par har VLAN ke liye sub-interface banta hai, aur single trunk par VLANs ke darmiyan routing hoti hai.Practice: Router-on-a-stick uses one physical router interface with sub-interfaces, one per VLAN, to route between VLANs over a single trunk.