免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1208 | 回复: 0
打印 上一主题 下一主题

关于arp.exe的一点应用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-20 00:42 |只看该作者 |倒序浏览

[color="#0033ff"]关于arp.exe的一点应用
使用ARP命令是在MS-DOS提示符下运行的,在运行里输入:CMD,便进入DOS提示符下:
arp.exe 是一个管理网卡底层物理地址的程序,每个网卡都有一个全球唯一的物理地址
,上网时,动态的IP地址就是根据这个物理地址影射的。
在同一个局域网段内有两个物理地址相同的网络适配器,不论如何配置都会造成IP地址
冲突。
arp -a,显示arp的影射;
arp -s IP地址 物理地址,增加一个arp影射,如arp -s 192.168.1.1 00-aa-00-00-c2
-99;
arp -d IP地址 物理地址,del掉一个arp影射。
用法:当IP地址冲突时,使用此命令可以把冲突的IP地址屏蔽掉!
详细用法:
Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).
ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]
  -a      Displays current ARP entries by interrogating the current
          protocol data.  If inet_addr is specified, the IP and Physical
          addresses for only the specified computer are displayed.  If
          more than one network interface uses ARP, entries for each ARP
          table are displayed.
  -g      Same as -a.
  inet_addr     Specifies an internet address.
  -N if_addr    Displays the ARP entries for the network interface specified
                by if_addr.
  -d            Deletes the host specified by inet_addr.
  -s            Adds the host and associates the Internet address inet_addr
                with the Physical address eth_addr.  The Physical address is
                given as 6 hexadecimal bytes separated by hyphens. The entry
                is permanent.
  eth_addr      Specifies a physical address.
  if_addr       If present, this specifies the Internet address of the
                interface whose address translation table should be modified.
                If not present, the first applicable interface will be used.
Example:
  > arp -s 157.55.85.212   00-aa-00-62-c6-09  .... Adds a static entry.
  > arp -a                                    .... Displays the arp table.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/484/showart_16607.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP