经常遇到要管理的设备不知道IP是多少,今天用arp-scan进行的扫描达到了目的。
# 安装 arp-scan
brew install arp-scan
# 扫描本地网络
sudo arp-scan --interface=en0 --localnet
Interface: en0, type: EN10MB, MAC: b0:25:aa:3f:b8:0b, IPv4: 10.40.0.1
Starting arp-scan 1.10.0 with 65536 hosts (https://github.com/royhills/arp-scan)
10.40.0.132 00:c0:ff:24:c8:e3 Seagate Cloud Systems Inc
10.40.0.132 00:c0:ff:24:c8:e3 Seagate Cloud Systems Inc (DUP: 2)