1.先查看用的哪塊網卡上的網,記錄下Idx編號,我的是14
C:\Windows\system32>netsh i i show in Idx Met MTU 狀態 名稱 --- ---------- ---------- ------------ --------------------------- 1 75 4294967295 connected Loopback Pseudo-Interface 1 10 1 65535 disconnected 本地連接 13 25 1500 disconnected WLAN 20 25 1500 disconnected 本地連接* 9 9 50 1500 connected 本地連接* 11 14 35 1500 connected 以太網 2 15 35 1500 connected VMware Network Adapter VMnet1 8 35 1500 connected VMware Network Adapter VMnet8
2.添加arp靜態綁定,需要管理員權限
C:\Windows\system32>netsh -c "i i" add neighbors 14 "192.168.1.2" "00-0C-29-E5-AA-D2"
3.查看arp列表
C:\Windows\system32>arp -a 接口: 10.4.7.1 --- 0x8 Internet 地址 物理地址 類型 239.255.255.250 01-00-5e-7f-ff-fa 靜態 接口: 192.168.137.1 --- 0x9 Internet 地址 物理地址 類型 192.168.137.228 50-98-39-0b-0a-22 動態 224.0.0.2 01-00-5e-00-00-02 靜態 224.0.0.22 01-00-5e-00-00-16 靜態 224.0.0.100 01-00-5e-00-00-64 靜態 224.0.0.253 01-00-5e-00-00-fd 靜態 239.255.255.250 01-00-5e-7f-ff-fa 靜態 接口: 192.168.1.253 --- 0xe Internet 地址 物理地址 類型 192.168.0.5 bc-85-56-79-b3-9b 動態 192.168.0.16 60-57-18-89-e9-1e 動態 192.168.1.1 5c-dd-70-e5-3e-9c 動態 192.168.1.2 00-0c-29-e5-aa-d2 靜態
4.刪除綁定
C:\Windows\system32>arp -d 192.168.1.2