Arping命令手册

Arping命令手册Arping命令手册  arping-sendARPREQUESTtoaneighbourhost注释:arping是用于发送ARP请求到一个相邻主机的工具SYNOPSIS  arping  [  -AbDfhqUV][  -ccount]

大家好,又见面了,我是你们的朋友全栈君。

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.

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/136358.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Flink 入门教程

    实时流处理的应用场景现在的社会已然进入了大数据AI时代,各行各业都有大量的数据需要处理,并希望从数据中挖掘价值。下面简单举几个例子:物联网中各种行为结果数据的实时收集分析金融行业中各种交易行为数据结果的实时收集分析电商行业中用户的浏览点击等行为数据结果的实时收集分析…实时流处理的目标低延迟高吞吐正确性可容错(即可以中断,并可以恢复且保证exactlyonce)顺序性(…

    2022年4月4日
  • Ubuntu安装VScode(搬运命令行)「建议收藏」

    Ubuntu安装VScode(搬运命令行)「建议收藏」ToinstallVisualStudioCodeonyourUbuntusystem,followthesesteps.First,updatethepackagesindexandinstallthedependenciesbytyping:sudoaptupdatesudoaptinstallsoftware-properties-commonapt-transport-httpswgetNext,importtheMic.

    2022年9月18日
  • 网页中图片去色问题是什么_网页问题

    网页中图片去色问题是什么_网页问题网页中图片去色问题网页中经常需要一种js效果,就是鼠标经过某张图片,图片去色。为了不加载两张图片(一张彩色和一张灰色),在网上找到了一些方法。方案一:使用grayscale.js可以使用grayscale.js来实现图片的去色,但是有个缺点就是它可以实现鼠标经过图片去色,但是实现不了鼠标移开之后,图片恢复颜色。使用demo:window.onload=function(

    2022年10月6日
  • 揭秘:HR是如何做背景调查的?你真的就可以隐瞒事实了吗?

    揭秘:HR是如何做背景调查的?你真的就可以隐瞒事实了吗?

    2022年2月13日
  • DataGrid的ItemDataBound事件

    DataGrid的ItemDataBound事件DataGrid之ItemCommand事件如下代码是将e.Item.Cells[3].Text;的值传个下一个跳出的页面,这个格式要记住它支持ItemCommand事件,给DataGrid添加这

    2022年7月2日
  • 《大型网站技术架构》读书笔记一:大型网站架构演化

    思维导图一、大型网站系统特点(1)高并发、大流量:PV流量巨大(2)高可用:7*24小时不间断服务(3)海量数据:文件数目分分钟XXTB(4)用户分布广泛:网络情况复杂(5)安全环境恶劣:

    2021年12月29日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号