ipコマンドを使わずにMACをチェックするためにipv6 addrを知る方法は?

ipコマンドを使わずにMACをチェックするためにipv6 addrを知る方法は?

私のルータにOpenWrtがインストールされていて、ここに接続されているいくつかのコンピュータのMACアドレスを取得したいと思います。 ipv4の場合は、次のコマンドを使用しますarp。しかし、ipv6アドレスを知ってハードウェアアドレスを解析したいと思います。私はipv6が持っていることを読んだ。国家発展計画プロトコルの交換ARPMAC テーブルを探すコマンドは、ip -6 neigh show問題は OpenWrt の BusyBox にそのコマンドがなく、ip一部のパッケージをインストールすると、そのコマンドがインポートできるかどうかわからないことです。だから私はipv6のMACテーブルをチェックする方法があるかどうか疑問に思います。たぶんcatいくつかのファイルしか持たないでしょうか?

編集する:インストールしましたアイピー管理者と一緒にパッケージ化され、opkg今すぐ利用可能ですが?ip -6 neigh showを使用して同じ情報を取得できるかどうか疑問に思います。cat somefile

ベストアンサー1

以下を使用して ndpmon パッケージをインストールできます。

apt-get install ndpmon


ndpmon - IPv6 Neighbor Discovery Protocol Monitor

root@lvm:/home/mohsen# dpkg -L ndpmon
/.
/etc
/etc/init.d
/etc/init.d/ndpmon
/etc/default
/etc/default/ndpmon
/etc/ndpmon
/etc/ndpmon/config_ndpmon.dtd
/etc/ndpmon/config_ndpmon.xml
/usr
/usr/lib
/usr/lib/ndpmon
/usr/lib/ndpmon/plugins
/usr/lib/ndpmon/plugins/mac_resolv
/usr/lib/ndpmon/plugins/mac_resolv/README
/usr/lib/ndpmon/plugins/mac_resolv/wka.tmpl
/usr/lib/ndpmon/plugins/mac_resolv/manuf.tmpl
/usr/lib/ndpmon/plugins/mac_resolv/manuf
/usr/lib/ndpmon/plugins/countermeasures
/usr/lib/ndpmon/plugins/countermeasures/icmp_lib.dox
/usr/lib/ndpmon/plugins/countermeasures/countermeasures.dox
/usr/lib/ndpmon/create_html_table.py
/usr/share
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/config_ndpmon.xml.8.gz
/usr/share/man/man8/ndpmon.8.gz
/usr/share/doc
/usr/share/doc/ndpmon
/usr/share/doc/ndpmon/changelog.Debian.gz
/usr/share/doc/ndpmon/copyright
/usr/share/doc/ndpmon/examples
/usr/share/doc/ndpmon/examples/demopipeprogram.pl.sample
/usr/share/doc/ndpmon/README
/usr/share/doc/ndpmon/changelog.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/ndpmon
/usr/share/python-support
/usr/share/python-support/ndpmon.private
/usr/sbin
/usr/sbin/ndpmon
/var
/var/lib
/var/lib/ndpmon
/var/lib/ndpmon/neighbor_list.xml
/var/lib/ndpmon/neighbor_list.dtd
/var/lib/ndpmon/alerts.xml
root@lvm:/home/mohsen# man ndpmon
root@lvm:/home/mohsen# apt-cache search ndpmon
ndpmon - IPv6 Neighbor Discovery Protocol Monitor

おすすめ記事