现在的位置: 首页 > 综合 > 正文

arp -s in win7(win7下的arp绑定)

2013年10月02日 ⁄ 综合 ⁄ 共 1021字 ⁄ 字号 评论关闭

 

 

1.想用的arp -s 添加静态绑定的 mac及ip地址

2.os   win7  english

3.(1)提示The ARP entry addition failed: The requested operation requires elevation

   解决办法,使用管理员身份运行cmd.exe

4.(2) arp -s 后,依然出错。

   提示为:The ARP entry addition failed: Access is denied

原因:win 7系统不支持对已有arp地址的绑定的,即想添加的ip-mac 已经存在在arp表中。

5.在win7想实现绑定按如下操作

(1)使用netsh i i show in

 C:\Windows\system32>netsh i i show in

(2)查看正在使用的网卡的 idx

Idx     Met         MTU          State                Name
---  ----------  ----------  ------------  ---------------------------
          50  4294967295  connected     Loopback Pseudo-Interface 1
 13          25        1500  connected     Wireless Network Connection
 11                 1500  disconnected  Local Area Connection

(2)使用命令(其中13为正在使用的网卡的idx)

注意空格键,每个符号后面都有空格

C:\Windows\system32>netsh -c "i i" add neighbors 13 "192.168.0.1" "00-22-b0-f8-0
d-6e"

(3)使用arp -a

查看是否成功

 C:\Windows\system32>arp -a

Interface: 192.168.0.99 --- 0xd
  Internet Address      Physical Address      Type
  192.168.0.1           00-22-b0-f8-0d-6e     static

type为static即可

 6.使用netsh i i reset

即可取消。需要重启才生效

 

参考资料:

http://blog.sina.com.cn/s/blog_5591ed850100s063.html

抱歉!评论已关闭.