Advanced STP/EtherChannel Troubleshooting

CCNP ENCOR 350-401 v1.2 EVE-NG / GNS3

مقصدObjectiveObjective

اس لیب میں آپ ایڈوانسڈ STP اور EtherChannel ٹربل شوٹنگ سیکھیں گے — خرابیاں پیدا کر کے انہیں ڈھونڈنا اور ٹھیک کرنا۔Is lab mein aap advanced STP aur EtherChannel troubleshooting seekhenge — kharabiyan paida kar ke unhein dhoondna aur theek karna.In this lab you will learn advanced STP and EtherChannel troubleshooting — creating faults, finding them, and fixing them.

آسان مثالSimple AnalogySimple Analogy

CCNA میں آپ نے STP سیکھا تھا — اب وقت ہے مستری بننے کا۔ اصل نیٹ ورکس میں مسائل آتے ہیں: لوپ بن گیا، EtherChannel ٹوٹ گیا، root bridge غلط بن گیا۔ اس لیب میں ہم جان بوجھ کر خرابیاں پیدا کریں گے اور انہیں ڈھونڈ کر ٹھیک کریں گے — جیسے ڈاکٹر مریض پر پریکٹس کرتا ہے۔CCNA mein aap ne STP seekha tha — ab waqt hai mistri banne ka. Asal networks mein masle aate hain: loop ban gaya, EtherChannel toot gaya, root bridge ghalat ban gaya. Is lab mein hum jaan boojh kar kharabiyan paida karenge aur unhein dhoond kar theek karenge — jaise doctor mareez par practice karta hai.In CCNA you learned STP — now it's time to become a mechanic. Real networks have problems: a loop forms, EtherChannel breaks, the wrong switch becomes root bridge. In this lab we will deliberately create faults and find and fix them — like a doctor practicing on a patient.

سیٹ اپLab SetupLab Setup

SW1-SW2 کے درمیان EtherChannel (Fa0/1-2) + ایک extra لنک (Fa0/24)۔ دونوں سوئچز پر PCs ہیں۔ ڈیوائسز: 2x سوئچ 2960 (SW1, SW2)، 2x پی سی۔ PC1: 192.168.10.10/24، PC2: 192.168.10.11/24۔ دونوں VLAN 10 میں۔SW1-SW2 ke darmiyan EtherChannel (Fa0/1-2) + ek extra link (Fa0/24). Dono switches par PCs hain. Devices: 2x Switch 2960 (SW1, SW2), 2x PC PC1: 192.168.10.10/24, PC2: 192.168.10.11/24. Dono VLAN 10 mein.EtherChannel (Fa0/1-2) between SW1-SW2 plus one extra link (Fa0/24). Both switches have PCs. Devices: 2x Switch 2960 (SW1, SW2), 2x PC. PC1: 192.168.10.10/24, PC2: 192.168.10.11/24. Both in VLAN 10.

اقداماتStepsSteps

Step 1

SW1: STP diagnose کریں۔ پہلے حالت دیکھیں: کون سا سوئچ root ہے؟ کون سا پورٹ blocking ہے؟SW1: STP diagnose karo. Pehle haalat dekho: kaunsa switch root hai? Kaunsa port blocking hai?SW1: diagnose STP. First check the state: which switch is root? Which port is blocking?

enable
show spanning-tree vlan 10
show spanning-tree interface fa0/1 detail

Step 2

کوئی inconsistent پورٹ تو نہیں؟ یہی کمانڈز ہر STP مسئلے کا پہلا قدم ہیں۔Koi inconsistent port to nahi? Yehi commands har STP masle ka pehla qadam hainAny inconsistent ports? These commands are the first step for every STP problem.

show spanning-tree inconsistentports
show spanning-tree summary

Step 3

EtherChannel diagnose کریں۔ EtherChannel کے مسائل عام طور پر mismatched کانفگ سے ہوتے ہیں — speed، duplex، trunk mode یا LACP mode کا فرق۔EtherChannel diagnose karo. EtherChannel ke masle aam tor par mismatched config se hote hain — speed, duplex, trunk mode ya LACP mode ka farq.Diagnose EtherChannel. EtherChannel problems usually come from mismatched config — speed, duplex, trunk mode or LACP mode differences.

show etherchannel summary
show etherchannel port-channel

Step 4

ان کمانڈز سے وجوہات ملتی ہیں۔In commands se wajuhat milti hainThese commands reveal the causes.

show interfaces fa0/1 etherchannel
show interfaces trunk

Step 5

ٹیسٹنگ: پریکٹس: (1) ایک سوئچ پر priority بدل کر root بدلیں، پھر واپس کریں۔Testing: Practice: (1) Ek switch par priority badal kar root badlo, phir wapas karo.Testing: practice — (1) change priority on one switch to change the root, then change it back.

Step 6

(2) EtherChannel کے ایک پورٹ کی speed بدلیں — چینل ٹوٹے گا، پھر ٹھیک کریں۔ ہر دفعہ show کمانڈز سے دیکھیں کیا ہوا۔(2) EtherChannel ke ek port ki speed badlo — channel tootega, phir theek karo. Har dafa show commands se dekho kya hua.(2) Change the speed of one EtherChannel port — the channel will break, then fix it. Each time check with show commands what happened.

تصدیقVerifyVerify

show spanning-tree vlan 10 اور show etherchannel summary — دونوں ٹھیک ہوں تو لیب کامیاب۔show spanning-tree vlan 10 aur show etherchannel summary — dono theek hon to lab kamyab.show spanning-tree vlan 10 and show etherchannel summary — if both are correct, the lab is a success.

show spanning-tree vlan 10
show etherchannel summary
show spanning-tree inconsistentports

خرابی دور کرناTroubleshootingTroubleshooting

⚠️ EtherChannel کے پورٹس الگ الگ کام کر رہے ہیں، چینل نہیں بن رہا۔EtherChannel ke ports alag alag kaam kar rahe hain, channel nahi ban raha.The EtherChannel ports are acting independently; the channel is not forming.

✅ دونوں طرف channel-group کا mode ایک جیسا ہونا چاہیے۔ show etherchannel summary میں (D) یا خالی flags دیکھیں۔Dono taraf channel-group ka mode same hona chahiye. show etherchannel summary mein (D) ya khaali flags dekho.The channel-group mode must be the same on both sides. Look for (D) or empty flags in show etherchannel summary.

⚠️ ایک پورٹ inconsistent state میں ہے۔Ek port inconsistent state mein hai.One port is in inconsistent state.

✅ show spanning-tree inconsistentports سے دیکھیں۔ Root Guard لگا ہو تو غلط root کی کوشش پر پورٹ inconsistent ہو جاتا ہے۔show spanning-tree inconsistentports se dekho. Root Guard laga ho to ghalat root ki koshish par port inconsistent ho jata hai.Check with show spanning-tree inconsistentports. If Root Guard is set, a wrong root attempt makes the port inconsistent.

⚠️ غلط سوئچ root بن گیا ہے۔Ghalat switch root ban gaya hai.The wrong switch became root.

✅ Priority واپس ٹھیک کریں (spanning-tree vlan 10 priority 4096) اور clear کریں۔Priority wapas theek karo (spanning-tree vlan 10 priority 4096) aur clear karo.Fix the priority back (spanning-tree vlan 10 priority 4096) and clear it.

انٹرویو سوالاتInterview Q&AInterview Q&A

❓ STP لوپ کا مسئلہ ہو تو ٹربل شوٹ کہاں سے شروع کریں گے؟STP loop ka masla ho to troubleshoot kahan se shuru karoge?If there is an STP loop problem, where would you start troubleshooting?

پہلے show spanning-tree سے root اور پورٹ states دیکھیں۔ پھر inconsistentports چیک کریں۔ آخر میں BPDUs آ رہے ہیں یا نہیں، یہ دیکھیں۔Pehle show spanning-tree se root aur port states dekho. Phir inconsistentports check karo. Aakhir mein BPDUs aa rahe hain ya nahi, ye dekho.First check root and port states with show spanning-tree. Then check inconsistentports. Finally check whether BPDUs are arriving or not.