Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the arpd command of linux to collect arp information

Shulou Source: shulou.com Published: 2022-06-02 14:44:52 09月27日 Update

Do not know how to use linux's arpd command to collect arp information? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.

The arpd command is a daemon that collects free arp information, saving the collected information on disk or, when needed, providing it to kernel users to avoid redundant broadcasts.

Syntax format: arpd [parameters]

Reference example

-l output the arp database to the standard output device display and exit-f specifies to read and load the text file of the arpd database, the format of the file is similar to the "- l" output information-b specifies the arpd database file, the default location is "/ var/lib/arpd.db-a specifies the number of queries before the target is considered dead-k forbids sending broadcast queries through the kernel-n sets buffer expiration time

Commonly used parameters: coach

Start the arpd process:

[root@linuxcool] # arpd-b / var/tmp/arpd.db

Look at the results after a period of time:

[root@linuxcool] # killall arpd; arpd-l-b / var/tmp/arpd.db

Enable the kernel helper, leaving the main role to the kernel:

[root@linuxcool] # arpd-b / var/tmp/arpd.db-a 1 eth0 eth2

Completely replace the kernel resolution on interfaces eth0 and eth2. In this case, the kernel still does unicast probes to verify entries, but all broadcast activity is suppressed and authorized by arpd:

[root@linuxcool] # arpd-b / var/tmp/arpd.db-a 3-k eth0 eth2

Prohibit the kernel from sending broadcast queries:

[root@linuxcool] # arpd-k Thank you for reading this article carefully. I hope the editor will share the use of linux's arpd command to collect arp information. At the same time, I also hope that you will support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Kernel information broadcast command data database file query output parameter time format article process question learning help location content resolution Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Microsoft Docker Shulou Technology Redmi