اس لیب میں آپ DHCP snooping اور DAI کانفیگر کرنا سیکھیں گے، اور WLAN security (WPA2/3) کے concepts سمجھیں گے۔
Is lab mein aap DHCP snooping aur DAI configure karna seekhenge, aur WLAN security (WPA2/3) ke concepts samjhenge.
In this lab you'll configure DHCP snooping and DAI, and understand WLAN security (WPA2/3) concepts.
سوچو کہ کوئی جھوٹا ڈاکیہ آپ کے محلے میں آ کر کہتا ہے 'میں سرکاری دفتر ہوں، مجھے اپنے خط دے دو' — اور لوگ دے بھی دیتے ہیں! DHCP snooping وہ چوکیدار ہے جو کہتا ہے: 'دفتر صرف اس دروازے سے آئے گا (trusted port)، باقی سب دروازوں سے آنے والے دفتر جھوٹے ہیں۔' DAI (Dynamic ARP Inspection) اس کا ساتھی ہے جو جھوٹے پتے (ARP spoofing) پکڑتا ہے۔ WiFi میں WPA2/WPA3 گھر کے دروازے کا تالا ہے — جتنا نیا، اتنا مضبوط۔
Socho ke koi jhoota dakiya aapke mohalle mein aa kar kehta hai 'main sarkari daftar hun, mujhe apne khat de do' — aur log de bhi dete hain! DHCP snooping woh chowkidar hai jo kehta hai: 'daftar sirf is darwaze se aayega (trusted port), baqi sab darwazon se aane wale daftar jhoote hain.' DAI (Dynamic ARP Inspection) uska saathi hai jo jhoote pate (ARP spoofing) pakarta hai. WiFi mein WPA2/WPA3 ghar ke darwaze ka taala hai — jitna naya, utna mazboot.
Imagine a fake postman comes to your neighborhood saying 'I'm the government office, give me your letters' — and people actually hand them over! DHCP snooping is the guard who says: 'the office only comes through this door (trusted port); any office coming from other doors is fake.' DAI (Dynamic ARP Inspection) is his partner who catches fake addresses (ARP spoofing). In WiFi, WPA2/WPA3 is the lock on your home's door — the newer, the stronger.

SW1: Fa0/1 = DHCP server (trusted)، Fa0/2-10 = clients (untrusted, VLAN 10)۔ Devices: 1x Switch 2960 (SW1), 1x Router (DHCP server), 3x PC۔ PCs پر DHCP (automatic) رکھو۔ Rogue DHCP test کے لیے ایک PC پر DHCP سرور بنا کر دیکھو کہ snooping روکتا ہے۔
SW1: Fa0/1 = DHCP server (trusted), Fa0/2-10 = clients (untrusted, VLAN 10). Devices: 1x Switch 2960 (SW1), 1x Router (DHCP server), 3x PC PCs par DHCP (automatic) rakho. Rogue DHCP test ke liye ek PC par DHCP server bana kar dekho ke snooping rokta hai.
SW1: Fa0/1 = DHCP server (trusted), Fa0/2-10 = clients (untrusted, VLAN 10). Devices: 1x Switch 2960 (SW1), 1x Router (DHCP server), 3x PC. Keep DHCP (automatic) on the PCs. For a rogue DHCP test, build a DHCP server on one PC and see that snooping blocks it.
SW1 پر DHCP Snooping۔ پہلے DHCP snooping آن کرو اور VLAN 10 پر لگاؤ۔
SW1 par DHCP Snooping. Pehle DHCP snooping on karo aur VLAN 10 par lagao.
DHCP snooping on SW1. First enable DHCP snooping and apply it to VLAN 10.
enableconfigure terminalip dhcp snoopingip dhcp snooping vlan 10پھر DHCP سرور کی طرف جانے والے port (Fa0/1) کو trusted بناؤ — باقی سب untrusted۔
Phir DHCP server ki taraf jane wale port (Fa0/1) ko trusted banao — baqi sab untrusted.
Then mark the port toward the DHCP server (Fa0/1) as trusted — all others untrusted.
interface fa0/1ip dhcp snooping trustexitRate limit سے DHCP starvation attack روکتا ہے۔
Rate limit se DHCP starvation attack rokta hai
Rate limiting stops DHCP starvation attacks.
interface range fa0/2 - 10ip dhcp snooping limit rate 10exitDAI آن کرو۔ DAI DHCP snooping کی binding table استعمال کر کے جھوٹے ARP packets پکڑتا ہے۔
DAI on karo. DAI DHCP snooping ki binding table istemal kar ke jhoote ARP packets pakarta hai.
Enable DAI. DAI uses DHCP snooping's binding table to catch fake ARP packets.
ip arp inspection vlan 10Server/uplink والا port trusted، باقی untrusted۔
Server/uplink wala port trusted, baqi untrusted
The server/uplink port is trusted, the rest untrusted.
interface fa0/1ip arp inspection trustexitTesting: PC کو IP ملنا چاہیے (trusted port سے)۔
Testing: PC ko IP milna chahiye (trusted port se).
Testing: the PC should get an IP (via the trusted port).
پھر ایک PC پر rogue DHCP سرور آن کرو — دوسرے PCs کو اس سے IP نہیں ملنا چاہیے۔
Phir ek PC par rogue DHCP server on karo — doosre PCs ko us se IP NAHI milna chahiye.
Then start a rogue DHCP server on one PC — the other PCs should NOT get an IP from it.
show ip dhcp snooping سے status دیکھو۔ show ip dhcp snooping binding سے leases دیکھو۔
show ip dhcp snooping se status dekho. show ip dhcp snooping binding se leases dekho.
Check status with show ip dhcp snooping. Check leases with show ip dhcp snooping binding.
show ip dhcp snoopingshow ip dhcp snooping binding