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
?
Unknown package 'ndpmon'.
There is nondpmon
for OpenWrt :) But i installedip
withopkg install ip
and now can applyip -6 neigh show
. Anyway im still wondering if i cancat
some file to get same info. – Kirill Feb 22 '15 at 15:00