自己收藏用:win7这个命令来设置arp地址

运行cmd 回车
1)输入:netsh interface ipv4 show interface 回车
查看你电脑所有网卡的idx
2)输入:netsh interface ipv4 set neighbors idx  "192.168.1.1" "0a-0a-0a-0a-0a-0a"
idx(需要设置的那个数值 一般是11 或12)
引号内参数分别是网址 和 Mac地址

:redo
rem netsh interface ipv4 show interfaces
netsh interface ipv4 set neighbors 361  "192.168.1.1" "xx-xx-xx-xx-xx-xx"
goto redo

原文地址:https://www.cnblogs.com/mikelij/p/2820044.html