The ARP command is used to view the information of MAC and IP in the router cache table. I will not talk about it much.
However, today, my colleagues can run ARP commands in the system, but the shell script shows that this command is not available. I was puzzled at the time.
Therefore, we did the following test:
1. ARP execution is correct.
2. Add a parameter:
It is still the table that outputs arp.
3. Help ARP
The following figure shows that ARP is not available.
[email protected]:~# help arpBuilt-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[email protected]:~#
4. Find.-Name/the detected ARP is located in/proc/<pid>/NET/arp, and the problem is unknown.
5. Echo $ path does not find ARP-related links in each path.
Although the ARP command was found in busybox, it was not checked. After the check, it should be fine.
So why can the system execute the ARP command when busybox is not installed?
You also need some advice.
Openwrt ARP command Problems