I was almost reinventing the wheel looking for CPAN modules until I finally found arp-scan.
% sudo arp-scan --interface=eth0 192.168.0.0/24 Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/) 192.168.0.1 00:0d:02:00:00:00 NEC AccessTechnica, Ltd. 192.168.0.193 44:37:e6:00:00:00 Hon Hai Precision Ind.Co.Ltd 192.168.0.194 c0:ff:d4:00:00:00 (Unknown) 192.168.0.198 bc:5f:f4:00:00:00 ASRock Incorporation 192.168.0.199 00:25:dc:00:00:00 Sumitomo Electric Networks, Inc 192.168.0.210 a4:12:42:00:00:00 (Unknown) 192.168.0.211 00:3a:9d:00:00:00 NEC AccessTechnica, Ltd. 7 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.8.1: 256 hosts scanned in 1.387 seconds (184.57 hosts/sec). 7 responded
This exactly what I wanted.
It seems that he does not know “c0:ff:d4”, Netgear, and “a4:12:42”, NecPlatf, but it’s OK. (Note: NEC Platforms (2014~) and NEC Access Technica (~2014) are the same company.)