在XP系统下, 为了防止ARP***,可以使用 arp -s IP MAC的方式绑定IP与MAC的对应关系
在WIN 7下如要绑定IP与MAC对应关系,需要使用如下命令:
1、使用命令查看本地主机上的网卡
C:\>netsh i i show interface
Idx Met MTU 状态 名称
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
14 50 1500 disconnected 无线网络连接
17 5 1500 disconnected 无线网络连接 2
12 40 1500 disconnected Bluetooth 网络连接
13 30 1500 connected 本地连接
15 20 1500 connected VMware Network Adapter VMnet1
16 20 1500 connected VMware Network Adapter VMnet8
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
14 50 1500 disconnected 无线网络连接
17 5 1500 disconnected 无线网络连接 2
12 40 1500 disconnected Bluetooth 网络连接
13 30 1500 connected 本地连接
15 20 1500 connected VMware Network Adapter VMnet1
16 20 1500 connected VMware Network Adapter VMnet8
2、绑定IP与MAC的对应关系
C:\>netsh -c i i add neighbors 13 192.168.0.1 MAC地址
转载于:https://blog.51cto.com/martin1201/1003921