Arping命令手册

Arping命令手册

   arping - send ARP REQUEST to a neighbour host

注释 :arping 是用于发送 ARP 请求到一个相邻主机的工具

SYNOPSIS

   arping   [   -AbDfhqUV] [   -c count]   [ -w deadline]   [ -s source]   -I interface destination

DESCRIPTION

   Ping destination on device interface   by   ARP   packets, using   source   address <source>.

注释 :arping 使用 arp 数据包来 ping 目标主机,你可以指定 arp 包中的 SPA (source protocol address)

OPTIONS

   -A     The   same   as   -U,   but   ARP   REPLY packets used instead of ARP   REQUEST.

注释 :-A 和 -U 相同,但使用 ARP 响应包

 

   -b     Send only MAC level broadcasts.   Normally   arping   starts   from sending   broadcast, and switch to unicast after reply received.

注释 :-b 用于发送以太网广播帧(FFFFFFFFFFFF) 。arping 一开始使用广播地址,在收到响应后就使用 unicast 地址

   -c count

   Stop after sending count ARP   REQUEST   packets.   With   deadline   option,   arping   waits   for   count ARP REPLY packets, until the   timeout expires.

注释 :-c 表示发送指定数量的 ARP 请求数据包后就停止。如果指定了 deadline 选项,则 arpnig 会等待相同数量的 ARP 响应包,知道超时为止


   -D     Duplicate address detection mode (DAD). See   RFC2131,   4.4.1. Returns 0, if DAD succeeded i.e. no replies are received

注释:-D 表示重复地址探测模式,也就是用于侦测是否有 ip 冲突。如果没有地址冲突,则返回 0


   -f     Finish after the first reply confirming that target is alive.

注释 :-f 表示在收到第一个响应包后就退出

   -I interface

   Name   of network device where to send ARP REQUEST packets. This option is required.

注释 :-I 指定用那个接口来发送 ARP 请求包。这个选项是必须的。


   -h     Print help page and exit.

   -q     Quiet output. Nothing is displayed.

注释 :-q 是 quiet 模式。


   -s source

   IP source address to use in ARP packets.   If   this   option   is absent, source address is:

注释 :-s 设定 arping 发送的 arp 数据包中的   SPA 字段的值。如果为空,则按下面处理

    -)1、如果是 DAD 模式(冲突地址探测),则设置为 0.0.0.0

    -)2、如果是 Unsolicited ARP 模式(Gratutious ARP)则设置为目标地址

    -)3、否则从路由表得出

 

   · In DAD mode (with option -D) set to 0.0.0.0.

   · In Unsolicited ARP mode (with options -U or -A) set to destination.

   · Otherwise, it is calculated from routing tables.

   -U     Unsolicited ARP mode to   update   neighbours’   ARP   caches. No   replies are expected.

注释:-U 就是启用 Gratutious 模式,它用于更新别的主机上的 ARP 表中本地主机的条目。不需要响应

 

   -V     Print version of the program and exit.

   -w deadline

   Specify   a   timeout, in seconds, before arping exits regardless of how many packets have been sent or received.   In   this   case

   arping   does   not   stop   after   count packet are sent, it waits   either for deadline expire or until count probes are   answered.

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值