arpd 命令

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

arpd 命令安装:


-bash: arpd: command not found

#Debian
apt-get install iproute2

#Ubuntu
apt-get install iproute2

#Alpine
apk add iproute2

#Arch Linux
pacman -S iproute2

#Kali Linux
apt-get install iproute2

#CentOS
yum install iproute2

#Fedora
dnf install iproute2

#Raspbian
apt-get install iproute2

#Docker
docker run cmd.cat/arpd arpd

arpd 命令补充说明:


arpd 命令是用来收集免费 arp 信息的一个守护进程,它将收集到的信息保存在磁盘上或者在需要时,提供给内核用户用于避免多余广播。

arpd 命令语法:


arpd [ -lkh? ] [ -a N ] [ -b dbase ] [-B number] [ -f file ] [-n time] [-R rate] [ interfaces ]

arpd 命令选项:


-l:将arp数据库输出到标准输出设备显示并退出;
-f:指定读取和加载arpd数据库的文本文件,文件的格式与“-l”输出信息类似;
-b:指定arpd数据库文件,默认的位置为“/var/lib/arpd.db”;
-a:指定目标被认为死掉前查询的次数;
-k:禁止通过内核发送广播查询;
-n:设定缓冲失效时间。

arpd 命令参数:


网络接口:指定网络接口。

arpd 命令实例:


启动 arpd 进程:

[root@Dev_Test ~]$arpd -b /Data/webapps/test.db

运行一段时间后,查看结果:

[root@Dev_Test ~]$arpd -l #需要指定db位置
db_open: No such file or directory

#指定刚才的 db 位置

[root@Dev_Test ~]$arpd -l -b /Data/webapps/test.db
#Ifindex IP              MAC
3        10.20.32.51     f8:c3:9e:4e:5b:da
3        10.20.32.71     40:31:3c:18:a7:98
3        10.20.32.77     90:2b:d2:70:81:46
3        10.20.32.101    40:31:3c:18:b0:44
3        10.20.32.105    a8:c8:3a:4c:97:12
3        10.20.32.123    78:02:f8:f6:7d:df
3        10.20.32.131    40:31:3c:18:af:d4
3        10.20.32.171    40:31:3c:18:a8:84
3        10.20.32.181    bc:3d:85:65:3b:31
3        10.20.32.205    6c:b7:49:64:f9:be
3        10.20.40.21     38:d5:47:ac:2a:61
3        10.20.40.25     38:d5:47:ac:ea:2a
3        10.20.40.107    fa:16:3e:c6:3a:6f
3        10.20.40.167    52:54:00:e3:0b:51
3        10.20.32.34     50:01:d9:d6:71:7d
3        10.20.32.102    40:31:3c:18:b2:14
3        10.20.32.152    7c:11:cb:37:e1:47
3        10.20.32.180    40:31:3c:18:b0:38
3        10.20.32.196    10:6f:3f:29:46:89
3        10.20.32.202    FAILED: 44sec ago
3        10.20.32.204    54:25:ea:74:46:40
3        10.20.32.236    40:31:3c:18:b0:70
3        10.20.32.246    50:01:d9:dc:cb:a7
3        10.20.32.254    00:e0:8d:03:fc:4e
3        10.20.40.20     38:d5:47:ac:e9:ee
3        10.20.40.24     38:d5:47:ab:4d:32
3        10.20.40.106    fa:16:3e:13:df:36
3        10.20.40.114    FAILED: 44sec ago
3        10.20.40.116    FAILED: 44sec ago
3        10.20.40.166    52:54:00:19:8e:30
3        10.20.40.168    FAILED: 44sec ago

arpd 命令扩展阅读:




arpd 命令评论