- 论坛徽章:
- 0
|
NAME
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 .
# 注释 :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
[color="#ff0000"]
-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
请求包。这个选项是必须的。
[color="#ff0000"]
-h Print help page
and exit.
-q Quiet output. Nothing is
displayed.
[color="#0000ff"]# 注释 :-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)则设置为目标地址
[color="#0000ff"]# -)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.
# 注释 :-w
设定一个超时时间,单位是秒。如果到了指定时间,arping 还没有完全收到响应则退出
# 问题 :arping 在正常情况下发送完 arp
请求包后会等待响应吗?
[color="#0000ff"]# 问题 :arping -w 的作用
SEE
ALSO
ping(8), clockdiff(8), tracepath(8).
AUTHOR
arping was written by Alexey
Kuznetsov .
SECURITY
arping requires
CAP_NET_RAWIO capability to be executed. It is not
recommended to be
used as set-uid root, because it allows user to mod-
ify ARP caches of
neighbour hosts.
AVAILABILITY
arping is part of iputils
package and the latest versions are avail-
able in source form for
anonymous ftp
ftp://ftp.inr.ac.ru/ip-rout
-
ing/iputils-current.tar.gz.
iputils-020927 27 September 2002
ARPING(8)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12066/showart_485064.html |
|