الأكاديميةCONNECT HUB ACADEMY
دخولسجّل مجاناً

تهديدات الطبقة الثانية وPort Security

الهجمات

  • MAC Flooding: المهاجم يملى جدول MAC فالسويتش يبعت كل حاجة لكل المنافذ ويقدر يتنصت.
  • VLAN Hopping: بالتفاوض على Trunk أو Double Tagging.
  • DHCP Spoofing: سيرفر DHCP مزيف يدي جيتواي المهاجم.
  • ARP Poisoning: المهاجم يقول "أنا الجيتواي" ويعمل Man in the Middle.

Port Security

Switch(config)# interface f0/5\nSwitch(config-if)# switchport mode access\nSwitch(config-if)# switchport port-security\nSwitch(config-if)# switchport port-security maximum 2\nSwitch(config-if)# switchport port-security mac-address sticky\nSwitch(config-if)# switchport port-security violation restrict\nSwitch# show port-security interface f0/5\nSwitch# show port-security address

Violation: protect (يرمي بصمت)، restrict (يرمي ويسجل)، shutdown (يقفل المنفذ err-disabled). لإعادة فتح منفذ مقفول: shutdown ثم no shutdown أو errdisable recovery cause psecure-violation.

تأمين المنافذ الفاضية

interface range f0/11-24\n switchport mode access\n switchport access vlan 999\n shutdown

VLAN 999 "Parking" مش موصلة بحاجة.

💬