اس لیب میں آپ دو سوئچز کے درمیان ٹرنک لنک بنانا سیکھیں گے۔ 802.1Q ٹیگنگ سے multiple VLANs کا ٹریفک ایک ہی کیبل پر جائے گا۔
Is lab mein aap do switches ke darmiyan trunk link banana seekhenge. 802.1Q tagging se multiple VLANs ka traffic ek hi cable par jayega.
In this lab, you'll learn to build a trunk link between two switches. With 802.1Q tagging, traffic from multiple VLANs travels over a single cable.
دو بلڈنگز کے درمیان ایک ہی روڈ ہے، لیکن اس پر الگ الگ ڈیپارٹمنٹس کی گاڑیاں چلتی ہیں۔ ہر گاڑی پر ایک اسٹیکر لگا ہے کہ یہ Sales کی ہے یا Accounts کی — تاکہ دوسری بلڈنگ میں صحیح ڈیپارٹمنٹ تک پہنچے۔ ٹرنک لنک یہی روڈ ہے، اور 802.1Q ٹیگنگ وہی اسٹیکر ہے جو ہر فریم پر VLAN نمبر لکھتا ہے۔
Do buildings ke darmiyan ek hi road hai, lekin us par alag alag departments ki gaariyan chalti hain. Har gaari par ek sticker laga hai ke ye Sales ki hai ya Accounts ki — taake doosri building mein sahi department tak pahunche. Trunk link yahi road hai, aur 802.1Q tagging wohi sticker hai jo har frame par VLAN number likhta hai.
There's one road between two buildings, but vehicles from different departments drive on it. Each vehicle has a sticker saying whether it's Sales or Accounts — so it reaches the right department in the other building. The trunk link is that road, and 802.1Q tagging is the sticker that writes the VLAN number on each frame.

SW1 کا Fa0/1، SW2 کے Fa0/1 سے کنیکٹڈ ہے (ٹرنک)۔ SW1: Fa0/2=PC1 (VLAN10)، Fa0/4=PC2 (VLAN20)۔ SW2: Fa0/2=PC3 (VLAN10)، Fa0/4=PC4 (VLAN20)۔ ڈیوائسز: 2x سوئچ 2960 (SW1، SW2)، 4x پی سی۔ PC1: 192.168.10.10/24، PC3: 192.168.10.11/24 (دونوں VLAN 10)۔ PC2: 192.168.20.10/24، PC4: 192.168.20.11/24 (دونوں VLAN 20)۔
SW1 ka Fa0/1, SW2 ke Fa0/1 se connected hai (trunk). SW1: Fa0/2=PC1 (VLAN10), Fa0/4=PC2 (VLAN20). SW2: Fa0/2=PC3 (VLAN10), Fa0/4=PC4 (VLAN20). Devices: 2x Switch 2960 (SW1, SW2), 4x PC PC1: 192.168.10.10/24, PC3: 192.168.10.11/24 (dono VLAN 10). PC2: 192.168.20.10/24, PC4: 192.168.20.11/24 (dono VLAN 20).
SW1's Fa0/1 connects to SW2's Fa0/1 (trunk). SW1: Fa0/2=PC1 (VLAN10), Fa0/4=PC2 (VLAN20). SW2: Fa0/2=PC3 (VLAN10), Fa0/4=PC4 (VLAN20). Devices: 2x Switch 2960 (SW1, SW2), 4x PCs. PC1: 192.168.10.10/24, PC3: 192.168.10.11/24 (both VLAN 10). PC2: 192.168.20.10/24, PC4: 192.168.20.11/24 (both VLAN 20).
SW1 پر ٹرنک بناؤ۔ Fa0/1 کو ٹرنک بناتے ہیں تاکہ یہ VLAN 10 اور 20 دونوں کا ٹریفک لے جا سکے۔
SW1 par trunk banao. Fa0/1 ko trunk banate hain taake ye VLAN 10 aur 20 dono ka traffic le ja sake.
Build the trunk on SW1. We make Fa0/1 a trunk so it can carry traffic for both VLAN 10 and VLAN 20.
enableconfigure terminalallowed vlan سے ہم بتاتے ہیں کہ کون سے VLANs اس ٹرنک پر جا سکتے ہیں
allowed vlan se hum batate hain ke kaun se VLANs is trunk par ja sakte hain
With allowed vlan we specify which VLANs may use this trunk.
interface fa0/1switchport mode trunkswitchport trunk allowed vlan 10,20exitSW2 پر VLANs + ٹرنک۔ دوسرے سوئچ پر بھی وہی VLANs بنانے پڑتے ہیں — VLAN نمبر دونوں طرف same ہونے چاہئیں۔
SW2 par VLANs + trunk. Doosre switch par bhi wohi VLANs banane parte hain — VLAN number dono taraf same hone chahiye.
VLANs + trunk on SW2. You must create the same VLANs on the other switch too — the VLAN numbers must match on both sides.
enableconfigure terminalvlan 10name SALESvlan 20name ACCOUNTSexitپھر ٹرنک لگاؤ اور PCs والے پورٹس access میں ڈالو
Phir trunk lagao aur PCs wale ports access mein daalo
Then apply the trunk and put the PC ports into access mode.
interface fa0/1switchport mode trunkswitchport trunk allowed vlan 10,20exitinterface range fa0/2 - 3switchport mode accessswitchport access vlan 10exitٹیسٹنگ: PC1 سے ping 192.168.10.11 — دوسرے سوئچ تک ٹرنک کے تھرو جانا چاہیے۔
Testing: PC1 se ping 192.168.10.11 — doosre switch tak trunk ke through jana chahiye.
Testing: from PC1, ping 192.168.10.11 — it should reach the other switch through the trunk.
PC1 سے ping 192.168.20.10 فیل ہونا چاہیے (الگ VLAN)۔
PC1 se ping 192.168.20.10 fail hona chahiye (alag VLAN).
From PC1, ping 192.168.20.10 should fail (different VLAN).
show interfaces trunk سے ٹرنک اسٹیٹس اور allowed VLANs دیکھو۔ show interfaces fa0/1 switchport سے ڈیٹیل کنفرم کرو۔
show interfaces trunk se trunk status aur allowed VLANs dekho. show interfaces fa0/1 switchport se detail confirm karo.
Check trunk status and allowed VLANs with show interfaces trunk. Confirm details with show interfaces fa0/1 switchport.
show interfaces trunkshow interfaces fa0/1 switchport