关于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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值