前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >Arping命令手册

Arping命令手册

作者头像
全栈程序员站长
发布2022-09-06 11:31:19
发布2022-09-06 11:31:19
7580
举报

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

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.cn/136358.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年6月3,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档