Windows - ARP 项添加失败 拒绝访问
 2022.04.09    |      实用技巧    |     AilsonJack    |     暂无评论    |     336 views
By: Ailson Jack
Date: 2022-04-09
个人博客: http://www.only2fire.com/
<p style="text-indent: 2em;">在Windows 10下执行命令:</p><pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto;">arp&nbsp;-s&nbsp;192.168.1.100&nbsp;00-0a-35-00-01-23</pre><p style="text-indent: 2em;">会提示:ARP 项添加失败: 拒绝访问,如下图所示:</p><p style="text-align:center"><img src="/uploads/AilsonJack/2022.04.09/112615017406825.png" onclick="preview_image(&#39;/uploads/AilsonJack/2022.04.09/112615017406825.png&#39;)"/></p><p style="text-indent: 2em;">这里我们可以通过下面的操作来添加ARP项。</p><p class="artical_littlestyle1">使用netsh命令查看Idx</p><p style="text-indent: 2em;">执行如下命令:</p><pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">netsh&nbsp;i&nbsp;i&nbsp;show&nbsp;in</pre><p style="text-indent: 2em;">得到网卡的Idx值为17,如下图所示:</p><p style="text-align:center"><img src="/uploads/AilsonJack/2022.04.09/112615906324044.png" onclick="preview_image(&#39;/uploads/AilsonJack/2022.04.09/112615906324044.png&#39;)"/></p><p class="artical_littlestyle2">添加静态ARP表项</p><p style="text-indent: 2em;">执行如下命令:</p><pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto;">netsh&nbsp;-c&nbsp;&quot;i&nbsp;i&quot;&nbsp;add&nbsp;neighbors&nbsp;17&nbsp;&quot;192.168.1.100&quot;&nbsp;&quot;00-0a-35-00-01-23&quot;</pre><p style="text-indent: 2em;">注解:命令中的17是上一步操作得到的Idx值。</p><p style="text-indent: 2em;">上述命令执行完成之后,通过 arp -a 命令就可以看到静态添加的ARP表项了。</p><p class="artical_littlestyle3">删除添加的静态ARP表项</p><p style="text-indent: 2em;">如果按照 <span style="color: rgb(31, 73, 125);">添加静态ARP表项</span> 章节的内容添加了ARP静态表项,那么就必须使用 netsh 命令来删除添加的静态ARP表项。 arp -d 命令删除了静态表项之后,在系统重启后如果存在之前添加的静态ARP表项的同样的IP地址,即使mac地址不一样,那么被删除的静态ARP表项就会再次存在。<br/></p><p style="text-indent: 2em;">执行如下命令:</p><pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto;">netsh&nbsp;-c&nbsp;&quot;i&nbsp;i&quot;&nbsp;del&nbsp;neighbors&nbsp;17</pre><p style="text-indent: 2em;">注解:命令中的17是上一步操作得到的Idx值。</p><p style="text-indent: 2em;">上述命令执行完成之后,通过 arp -a 命令就可以看到静态的ARP表项被删除了。</p>
欢迎关注博主的公众号呀,精彩内容随时掌握:
热情邀请仔细浏览下博客中的广告,万一有对自己有用或感兴趣的呢。◕ᴗ◕。。
如果这篇文章对你有帮助,记得点赞和关注博主就行了^_^,当然了能够赞赏博主,那就非常感谢啦!
注: 转载请注明出处,谢谢!^_^
转载请注明来源: 本文链接:  By: AilsonJack
Windows - ARP 项添加失败 拒绝访问  |  说好一起走
暂无评论,要不要来个沙发
发表评论

 
Copyright © 2015~2023  说好一起走   保留所有权利   |  百度统计  蜀ICP备15004292号