2019-04-21 11:50:48 +08:00

22 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="arpd">arpd</h1>
<p>收集免费ARP信息</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>arpd命令</strong> 是用来收集免费arp信息的一个守护进程它将收集到的信息保存在磁盘上或者在需要时提供给内核用户用于避免多余广播。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">arpd(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-l将arp数据库输出到标准输出设备显示并退出
-f指定读取和加载arpd数据库的文本文件文件的格式与“-l”输出信息类似
-b指定arpd数据库文件默认的位置为“/var/lib/arpd.db”
-a指定目标被认为死掉前查询的次数
-k禁止通过内核发送广播查询
-n设定缓冲失效时间。</code></pre>
<h3 id="参数">参数</h3>
<p>网络接口:指定网络接口。</p>
<h3 id="实例">实例</h3>
<p>启动arpd进程</p>
<pre><code class="language-bash">arpd -b /var/tmp/arpd.db</code></pre>
<p>运行一段时间后,查看结果:</p>
<pre><code class="language-bash">arpd -l -b /var/tmp/arpd.db</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->