Goal
sshで Raspberryとか同じネットワークでつながっている機器のアドレスを調べたい
一応MACを利用しているので、MACで楽な方法がいい
Solutions
-
install
sudo brew install arp-scan
-
Using the following command:
arp-scan --interface スキャンを行うネットワークアダプタ(eth0など) -l
Using ifconfig to specify network_adapter (自分の場合 en6)
以下は実行サンプル
sudo arp-scan --interface en6 -l
Interface: en6, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.9 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
xxx.xxx.xxx.xxx xx:xx:xx:xx:xx:xx Philips Lighting BV
xxx.xxx.xxx.xxx xx:xx:xx:xx:xx:xx Raspberry Pi Foundation