I installed OpenWrt on my router and I wanted to get MAC address of some machine connected to it. With ipv4 I would use arp command. But I want to resolve HW address knowing ipv6 addr. I have read that ipv6 has ndp protocol replacing arp and the command to lookup MAC table is ip -6 neigh show, but the problem is BusyBox in my OpenWrt does not have ip command and i am not sure if installing some package can bring it. So I wonder if there is any way to check MAC table for ipv6? Maybe I can just cat some file?

Edit: I installed ip package with opkg manager so now i can use ip -6 neigh show, but I'm still wondering if I can get the same info using cat somefile?


You can use install ndpmon package:

apt-get install ndpmon

ndpmon - IPv6 Neighbor Discovery Protocol Monitor

root@lvm:/home/mohsen# dpkg -L ndpmon
root@lvm:/home/mohsen# man ndpmon
root@lvm:/home/mohsen# apt-cache search ndpmon
ndpmon - IPv6 Neighbor Discovery Protocol Monitor
| improve this answer | |
  • 1
    Unknown package 'ndpmon'. There is no ndpmon for OpenWrt :) But i installed ip with opkg install ip and now can apply ip -6 neigh show. Anyway im still wondering if i can cat some file to get same info. – Kirill Feb 22 '15 at 15:00
  • ndpmon.sourceforge.net – PersianGulf Feb 22 '15 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.