OpenWrt arp 命令发布

arp命令是用来查看mac与ip在消息路由器缓存表。这是一个基本的介绍了一下我就不说了。

但今天我的同事通过arp。可是在shell脚本就回显示没有此命令,我当时也感到非常费解。

于是乎。做了例如以下測试:


1. arp 运行 确实没有问题。

2. 加个參数:

仍然是输出arp的表。

3. help arp

这时显演示样例如以下,还是没有arp

root@YSWiFi:~# help arp
Built-in commands:
------------------
        . : [ [[ alias bg break cd chdir command continue echo eval exec
        exit export false fg getopts hash help jobs kill let local printf
        pwd read readonly return set shift source test times trap true
        type ulimit umask unalias unset wait

root@YSWiFi:~#

4. find . -name / 发现的arp都是位于/proc/<pid>/net/arp , 也不知道问题。

5. echo $PATH 在每个路径中寻找arp相关的链接,也没有找到。


尽管在busybox找到了这个arp命令,确实没有勾选,勾选之后,应该就会好了。

那么为什么系统在busybox没有安装这个arp命令的时候也能够运行呢?

我们还需要开导。

版权声明:本文博客原创文章,博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/mfrbuaa/p/4626698.html