Openwrt arp 命令問題

來源:互聯網
上載者:User

標籤:style   blog   ar   sp   on   2014   問題   log   bs   

arp命令是用來查看mac與ip在路由器緩衝表的資訊,關於它的基本介紹我就不多說了。

但是今天同事通過arp命令在系統可以運行,但是在shell指令碼就回顯示沒有此命令,我當時也感到很費解。

於是乎,做了如下測試:


1. arp 執行 確實沒有問題。

2. 加個參數:

仍然是輸出arp的表。

3. help arp

這時顯示如下,還是沒有arp

[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 / 發現的arp都是位於/proc/<pid>/net/arp , 也不知道問題。

5. echo $PATH 在每一個路徑中尋找arp相關的連結,也沒有找到。


雖然在busybox找到了這個arp命令,確實沒有勾選,勾選之後,應該就會好了。

那麼為什麼系統在busybox沒有安裝這個arp命令的時候也可以執行呢?

還需要各位指點迷津。

Openwrt arp 命令問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.