Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Windows 7 使用 netsh 指令綁定 IP 與 MAC 位址:防止 ARP 欺騙

編輯:關於 Windows

在命令提示字元 (系統管理員) 使用 netsh 將指定 IP 與 MAC 位址寫入鄰居快取,防止 ARP 攻擊與 IP 衝突。

操作指令

  1. 查詢介面索引:
    netsh interface ipv4 show interfaces
    記下目標介面的 Idx(如 16)。
  2. 綁定 IP 與 MAC:
    netsh interface ipv4 add neighbors 16 "192.168.1.100" "00-11-22-33-44-55"
  3. 驗證:
    arp -a 查看靜態項目。
  4. 解除綁定:
    netsh interface ipv4 delete neighbors 16

此為靜態 ARP 綁定,重開機後失效,需寫入啟動腳本或使用第三方工具持久化。

Copyright © Windows教程網 All Rights Reserved