大家好,又见面了,我是你们的朋友全栈君。
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.
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/136358.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...