ARP协议是“Address Resolution Protocol”(地址解析协议)的缩写。在同一以太网中,通过地址解析协议,源主机可以通过目的主机的IP地址获得目的主机的MAC地址。arping程序就是完成上述过程的程序。

arping,用来向局域网内的其它主机发送ARP请求的指令,它可以用来测试局域网内的某个IP是否已被使用。

root@pgg:/home/pgg# arping --help

ARPing 2.21, by Thomas Habets thomas@habets.se
usage: arping [ -0aAbdDeFpPqrRuUv ] [ -w ] [ -W ] [ -S <host/ip> ]
[ -T <host/ip ] [ -s ] [ -t ] [ -c ]
[ -C ] [ -i ] [ -m ] [ -g ]
[ -V ] [ -Q ] <host/ip/MAC | -B>

Options:

-0     Use this option to ping with source IP address 0.0.0.0. Use thiswhen you haven't configured your interface yet.  Note that  thismay  get  the  MAC-ping  unanswered.   This  is  an alias for -S0.0.0.0.
-a     Audiable ping.
-A     Only count addresses matching  requested  address  (This  *WILL*break  most things you do. Only useful if you are arpinging manyhosts at once. See arping-scan-net.sh for an example).
-b     Like -0 but source broadcast source  address  (255.255.255.255).Note that this may get the arping unanswered since it's not nor-mal behavior for a host.
-B     Use instead of host if you want to address 255.255.255.255.
-c countOnly send count requests.
-C countOnly wait for this many replies, regardless of -c and -w.
-d     Find duplicate replies. Exit with 1 if there are answers fromtwo different MAC addresses.
-D     Display answers as exclamation points and missing packets as dots.
-e     Like -a but beep when there is no reply.
-F     Don't try to be smart about the interface name.  (even  if  thisswitch is not given, -i overrides smartness)
-g groupsetgid() to this group instead of the nobody group.
-h     Displays a help message and exits.
-i interfaceUse the specified interface.
-m typeType of timestamp to use for incoming packets. Use -vv whenpinging to list available ones.
-q     Does not display messages, except error messages.
-Q pri 802.1p priority to set. Should be used with 802.1Q (-V).Defaults to 0.
-r     Raw output: only the MAC/IP address is displayed for each reply.
-R     Raw output: Like -r but shows "the other one", can  be  combinedwith -r.
-s MAC Set source MAC address. You may need to use -p with this.
-S IP  Like  -b and -0 but with set source address.  Note that this mayget the arping unanswered if the target does not have routing tothe  IP.  If you don't own the IP you are using, you may need toturn on promiscious mode on the interface (with -p).  With  thisswitch  you can find out what IP-address a host has without tak-ing an IP-address yourself.
-t MAC Set target MAC address to use when pinging IP address.
-T IP  Use -T as target address when pinging MACs that won't respond toa broadcast ping but perhaps to a directed broadcast.Example:To check the address of MAC-A, use knowledge of MAC-B and  IP-B.$ arping -S <IP-B> -s <MAC-B> -p <MAC-A>
-p     Turn  on  promiscious  mode  on interface, use this if you don't"own" the MAC address you are using.
-P     Send ARP replies instead of requests. Useful with -U.
-u     Show index=received/sent instead  of  just  index=received  whenpinging MACs.
-U     Send unsolicited ARP.
-v     Verbose output. Use twice for more messages.
-V num 802.1Q tag to add. Defaults to no VLAN tag.
-w sec Specify a timeout before ping exits regardless of how many packets have been sent or received.
-W sec Time to wait between pings.

Report bugs to: thomas@habets.se
Arping home page: http://www.habets.pp.se/synscan/
Development repo: http://github.com/ThomasHabets/arping

Kali-linux :arping命令相关推荐

  1. Kali Linux下命令行终端的中英文切换

    Kali Linux下命令行终端的中英文切换 由于自己想下载个kali linux学习,但是苦于自己设备受限,下载了kali官网的light版本: kali-linux-light-2019.1a-a ...

  2. 【Linux】一步一步学Linux——arping命令(164)

    00. 目录 文章目录 00. 目录 01. 命令概述 02. 命令格式 03. 常用选项 04. 参考示例 05. 附录 01. 命令概述 arping命令作用是使用arp数据包,通过ping命令检 ...

  3. kali linux 升级命令_作为高级Java,你应该了解的Linux知识

    原创:小姐姐味道(微信公众号ID:xjjdog),欢迎分享,转载请保留出处. 作为一个javaer,我以前写过很多关于Linux的文章.但经过多年的观察,发现其实对于大部分人,有些东西压根就用不着.用 ...

  4. kali linux 升级命令_Kali Linux系统:如何升级/更新?

    如果你是刚对Kali Linux入手,你会发现这样一个问题:大家都用过windows系统对吧,它都有一个自动更新或手动更新功能,windows系统可以升级的.我们的Kali Linux系统又如何升级呢 ...

  5. Linux arping命令测试IP地址冲突

    arping命令可以用来测试局域网各个主机之间的连通性,测试局域网中某个特定的IP地址是否已经被占用,进而可以有效检测局域网内的IP地址冲突问题. 如下图示例:arping -c 3 -f -D *. ...

  6. kali linux 升级命令_linux系统怎么更新?linux更新系统的方法

    大家都知道windows系统有一个自动更新,那么,linux系统又应该怎样更新呢?下面,就以比较常用的linux版本CentOS为例,来教大家具体的操作方法. 方法一:利用终端命令更新 1.启动Cen ...

  7. kali linux 网络命令,Kali Linux系统连接Wifi无线网络命令:

    第一种:root@kali:~# iwconfigroot@kali:~# ifconfigroot@kali:~# ifconfig wlan0 uproot@kali:~#iw dev wlan0 ...

  8. 【实战模拟】Kali Linux Vim命令大全 ——新手上路必备

    新手上路,vim编译器不会保存,不会退出,今天教大家如何使用vim编译器的指令 vim编译器在使用是会在做左下角出现提示,通常插入表示的是可进行编辑,输入的意思, 当你按下Esc键,就会取消编辑状态, ...

  9. 远程连接Kali Linux使用PuTTY实现SSH远程连接

    远程连接Kali Linux使用PuTTY实现SSH远程连接 本书主要以在Android设备上安装的Kali Linux操作系统为主,介绍基于Bash Shell渗透测试.由于在默认情况下,在Andr ...

  10. 云安全技术——Kali Linux安装

    [实验目的] 1.了解信息安全专用Kali Linux系统: 2.掌握TOR与VPN的安装和配置: 3.通过插件增强浏览器的功能: 4.掌握如何清理系统垃圾: 5.掌握Kali Linux系统备份: ...

最新文章

  1. 每天学习Linux(3)---pwd命令
  2. 解析没有id的html,网络爬虫干货,还在用正则匹配html?专业的解析组件了解一下...
  3. C# 面试前的准备_基础知识点的回顾_05
  4. XML外部实体注入漏洞——XXE简单分析
  5. qq掉线咒语:aidusort.as
  6. 面试题 17.13. 恢复空格
  7. django的form常用字段和参数
  8. qt 子窗口与父窗口数据通信_Qt实例--主窗口和子窗口互发信号
  9. python编程胡牌将是什么意思_OpenCV+Python识别车牌和字符分割的实现
  10. python开发工具和框架安装器_Python基础框架和工具
  11. slub释放过程-do_slab_free
  12. Atitit 诗歌之道 attilax著 艾龙 著 1. 诗歌集分类 1 1.1. 国王颂歌 1 1.2. 爱情类(相逢 赞美 相识 思念 离去 分分离离 忘记) 1 1.3. 其他 1 2. 世界
  13. SQL Server 2008空间数据应用系列九:使用空间工具(Spatial Tools)导入ESRI格式地图数据...
  14. 如何用matlab做拉普拉斯变换,利用MATLAB实现拉普拉斯变换和其逆变换
  15. 开源 cocos2dx 五彩连珠.
  16. android双卡切换,OPPOReno双卡双待怎么切换使用?
  17. 深度学习笔记 —— 微调
  18. AttributeError: module cv2.face has no attribute 'createEigenFaceRecognizer'
  19. 简单几步:图解——VS2012发布网站详细步骤
  20. ASEMI整流桥GBU808参数,GBU808介绍,GBU808详解

热门文章

  1. 计算机网络第七版第一章答案
  2. 英特尔hd630驱动_英特尔Iris HD Graphics显卡驱动64位_ intel驱动-PChome下载中心
  3. 一个很有意思的熊猫免疫器
  4. Easy CHM使用简明教程
  5. redis MySQL 脏读_redis多线程情况下避免读脏数据的悲观锁解决方案
  6. 贝叶斯公式理解与应用
  7. 通过 Nginx 来实现禁止国外IP访问网站
  8. 店铺淘客软件定制,1688分销软件OEM贴牌配合精细化运营提升店铺流量
  9. Centos7配置阿里YUM源
  10. 【Linux学习笔记】9. Linux打包压缩解压缩命令tar