[已解决问题] 服务器中了Arp,如何彻底清除掉Arp?
提问时间: 2008-01-02 09:29
浏览:1054 次
服务器中了Arp,如何彻底清除掉Arp?请指教,谢谢!
最佳答案
看看于震的
http://www.hatoyu.com/wordpress/2007/06/08/796.html

再贴个批处理

@echo off
:::::::::::::清除所有的ARP缓存
arp -d

:::::::::::::读取本地连接配置
ipconfig /all>ipconfig.txt

:::::::::::::读取内网网关的IP
for /f "tokens=13" %%I in ('find "Default Gateway" ipconfig.txt') do set GatewayIP=%%I

:::::::::::::PING三次内网网关
ping %GatewayIP% -n 3

:::::::::::::读取与网关arp缓存
arp -a|find "%GatewayIP%">arp.txt

:::::::::::::读取网关MAC并绑定
for /f "tokens=1,2" %%I in ('find "%GatewayIP%" arp.txt') do if %%I==%GatewayIP% arp -s %%I %%J

:::::::::::::读取本机的 IP+MAC
for /f "tokens=15" %%i in ('find "IP Address" ipconfig.txt') do set ip=%%i
for /f "tokens=12" %%i in ('find "Physical Address" ipconfig.txt') do set mac=%%i

:::::::::::::绑定本机的 IP+MAC
arp -s %ip% %mac%

:::::::::::::删除所有的临时文件
del ipconfig.txt
del arp.txt
exit
2008/1/2 11:44:05 回答者:武眉博<活靶子.Net>


提问者对于答案的评价:谢谢大家!
其它回答(4)
;(

http://zhidao.baidu.com/question/15040856.html
6个月前   回答者:沙加 - 老鸟四级
http://www.cnbeta.com/articles/45679.htm
6个月前   回答者:wingoo - 小虾三级
杀完毒以后装个360的ARP防火墙,效果蛮好的
6个月前   回答者:AndyFish - 小虾三级
我觉得还是antiarp功能强大。。我们公司全是用的这个

6个月前   回答者:张荣华 - 小虾三级
评论
   您需要登录以后才能回答!
我的问题    我要提问


快到期问题

> 问题排行榜

有不合适内容,建议去除