اس لیب میں آپ STP کے protection فیچرز سیکھیں گے — PortFast، BPDU Guard/Filter، Root Guard اور Loop Guard۔ یہ v2.0 میں واضح طور پر شامل ہیں۔
Is lab mein aap STP ke protection features seekhenge — PortFast, BPDU Guard/Filter, Root Guard aur Loop Guard. Ye v2.0 mein wazeh tor par shamil hain.
In this lab, you'll learn STP's protection features — PortFast, BPDU Guard/Filter, Root Guard, and Loop Guard. These are explicitly included in v2.0.
STP پولیس والا ہے، لیکن اسے بھی helpers چاہئیں۔ PortFast کہتا ہے: 'یہ پورٹ PC کا ہے، یہاں سوئچ نہیں لگے گا — فوراً کھول دو، 30 سیکنڈ wait مت کرو۔' BPDU Guard کہتا ہے: 'اگر اس PC والے پورٹ پر کسی نے سوئچ لگا دیا تو پورٹ بند کر دو — کوئی نیا پولیس والا نہیں آئے گا۔' Root Guard کہتا ہے: 'اس پورٹ سے کوئی اپنے آپ کو root declare نہیں کر سکتا۔' Loop Guard کہتا ہے: 'اگر BPDU آنا بند ہو جائے تو پورٹ کو loop میں مت ڈالو۔'
STP police wala hai, lekin usay bhi helpers chahiye. PortFast kehta hai: 'ye port PC ka hai, yahan switch nahi lagega — foran khol do, 30 second wait mat karo.' BPDU Guard kehta hai: 'agar is PC wale port par kisi ne switch laga diya to port band kar do — koi naya police wala nahi aayega.' Root Guard kehta hai: 'is port se koi apne aap ko root declare nahi kar sakta.' Loop Guard kehta hai: 'agar BPDU aana band ho jaye to port ko loop mein mat daalo.'
STP is the officer, but it needs helpers too. PortFast says: 'This port is a PC's — no switch will connect here — open it immediately, don't wait 30 seconds.' BPDU Guard says: 'If someone plugs a switch into this PC port, shut the port down — no new officer is coming.' Root Guard says: 'No one may declare itself root through this port.' Loop Guard says: 'If BPDUs stop arriving, don't put the port into a loop.'

SW1-SW2 کے درمیان ٹرنک لنکس۔ Fa0/2-10 access پورٹس (PCs)، Fa0/1 اپ لنک، Fa0/24 redundant لنک۔ ڈیوائسز: 2x سوئچ 2960 (SW1، SW2)، 2x پی سی۔ PC1: 192.168.10.10/24، PC2: 192.168.10.11/24۔ دونوں VLAN 10 میں۔
SW1-SW2 ke darmiyan trunk links. Fa0/2-10 access ports (PCs), Fa0/1 uplink, Fa0/24 redundant link. Devices: 2x Switch 2960 (SW1, SW2), 2x PC PC1: 192.168.10.10/24, PC2: 192.168.10.11/24. Dono VLAN 10 mein.
Trunk links between SW1-SW2. Fa0/2-10 are access ports (PCs), Fa0/1 is the uplink, Fa0/24 the redundant link. Devices: 2x Switch 2960 (SW1, SW2), 2x PCs. PC1: 192.168.10.10/24, PC2: 192.168.10.11/24. Both in VLAN 10.
Access پورٹس پر PortFast + BPDU Guard۔ PCs والے پورٹس پر PortFast لگاتے ہیں تاکہ پورٹ فوراً forwarding میں آئے۔
Access ports par PortFast + BPDU Guard. PCs wale ports par PortFast lagate hain taake port foran forwarding mein aaye.
PortFast + BPDU Guard on access ports. We apply PortFast on PC ports so the port goes to forwarding immediately.
enableconfigure terminalinterface range fa0/2 - 10spanning-tree portfastساتھ BPDU Guard تاکہ اگر کوئی سوئچ لگا دے تو پورٹ خود بند ہو جائے۔
Saath BPDU Guard taake agar koi switch laga de to port khud band ho jaye.
Plus BPDU Guard so the port shuts itself down if someone plugs in a switch.
spanning-tree bpduguard enableexitRoot Guard، Loop Guard، BPDU Filter۔ اپ لنک پر Root Guard (کوئی دوسرا root نہ بن سکے)۔
Root Guard, Loop Guard, BPDU Filter. Uplink par Root Guard (koi doosra root na ban sake).
Root Guard, Loop Guard, BPDU Filter. Root Guard on the uplink (so no other switch can become root).
interface fa0/1spanning-tree guard rootexitredundant لنک پر Loop Guard (BPDU غائب ہوں تو loop نہ بنے)۔
Redundant link par Loop Guard (BPDU ghaib hon to loop na bane).
Loop Guard on the redundant link (so no loop forms if BPDUs disappear).
interface fa0/24spanning-tree guard loopexitBPDU Filter BPDU بھیجنا روکتا ہے — صرف خاص cases میں استعمال کرو۔
BPDU Filter BPDU bhejna rokta hai — sirf khaas cases mein istemal karo.
BPDU Filter stops sending BPDUs — use only in special cases.
interface fa0/11spanning-tree bpdufilter enableexitٹیسٹنگ: PC کا کیبل نکالو اور دوبارہ لگاؤ — پورٹ فوراً up ہونا چاہیے (PortFast کا کمال)۔
Testing: PC ka cable nikalo aur dobara lagao — port foran up hona chahiye (PortFast ka kamal).
Testing: unplug the PC's cable and plug it back in — the port should come up immediately (that's PortFast at work).
show spanning-tree interface fa0/2 detail سے PortFast اسٹیٹس دیکھو۔
show spanning-tree interface fa0/2 detail se PortFast status dekho.
Check the PortFast status with show spanning-tree interface fa0/2 detail.
show spanning-tree interface fa0/2 detail سے PortFast اور guards دیکھو۔ show spanning-tree inconsistentports سے violations دیکھو۔
show spanning-tree interface fa0/2 detail se PortFast aur guards dekho. show spanning-tree inconsistentports se violations dekho.
Check PortFast and the guards with show spanning-tree interface fa0/2 detail. Check violations with show spanning-tree inconsistentports.
show spanning-tree interface fa0/2 detailshow spanning-tree inconsistentports