Scanning lan ip address 1 with arp-scan, install yum install-y libpcap-devel before installation. If the yum tool www.2cto.com is not installed, install the following package with rpm [root @ oradba arp-scan-1.8] # yum list | grep libpcaplibpcap. i386 14:0. 9.4-15. el5 installedlibpcap. x86_64 14:0. 9.4-15. el5 installedlibpcap-devel.i386. 9.4-15. el5 installedlibpcap-devel.x86_64. 9.4-15. el5 installed
2, download the package wget javasxvf arp-scan-1.8.tar.gz cd arp-scan-1.8./configuremake & make install
View All hosts in the CIDR Block [root @ oradba arp-scan-1.8] # arp-scan-lInterface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8 with 256 hosts ( http://www.nta-monitor.com/tools/arp-scan/ 192.168.100.1 00: 24: 1d: 17: d6: e3 GIGA-BYTE technology co ., LTD.192.168.100.4 00: 26: b9: 51: 68: ef Dell Inc // Nic 192.168.100.5 20: cf: 30: 6f: 6f: c6 ASUSTek COMPUTER INC.192.168.100.6 48: 5b: 39: 86: 1c: 62 ASUSTek COMPUTER INC.192.168.100.7 48: 5b: 39: 86: 1c: 3a ASUSTek computer inc. you can specify the network adapter www.2cto.com [root @ gateway ~] # Arp-scan -- interface = eth1-lInterface: eth1, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8 with 256 hosts ( http://www.nta-monitor.com/tools/arp-scan/ 192.168.100.1 00: 24: 1d: 17: d6: e3 GIGA-BYTE technology co ., LTD.192.168.100.4 00: 26: b9: 51: 68: ef Dell Inc192.168.100.5 20: cf: 30: 6f: 6f: c6 ASUSTek COMPUTER INC.192.168.100.6 48: 5b: 39: 86: 1c: 62 ASUSTek COMPUTER INC.192.168.100.7 48: 5b: 39: 86: 1c: 3a ASUSTek COMPUTER INC.192.168.100.8 bc: 30: 5b: ad: 74: 22 Dell Inc.192.168.100.9 00: 26: b9: 8e: 16: 17 Dell Inc192.168.100.15 00: 26: b9: 35: cf: 63 Dell Inc192.168.100.17 00: 0c: 29: 08: 6a: 06 VMware, Inc.192.168.100.18 00: 0c: 29: 08: 6a: 06 VMware, Inc.192.168.100.19 00: 0c: 29: 08: 6a: 06 VMware, inc.192.168.100.20 00: 0c: 29: 08: 6a: 06 VMware, Inc.192.168.100.22 00: 24: 1d: 17: d6: e3 GIGA-BYTE technology co ., LTD.192.168.100.23 84: 2b: 2b: 59: 31: 4f Dell Inc.192.168.100.24 00: 26: b9: 8e: 16: 17 Dell Inc specifies an IP address segment [root @ gateway ~] # Arp-scan -- interface = eth1 192.168.100.0/29 Interface: eth1, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8 with 8 hosts ( http://www.nta-monitor.com/tools/arp-scan/ 192.168.100.1 00: 24: 1d: 17: d6: e3 GIGA-BYTE technology co ., LTD.192.168.100.4 00: 26: b9: 51: 68: ef Dell Inc192.168.100.5 20: cf: 30: 6f: 6f: c6 ASUSTek COMPUTER INC.192.168.100.6 48: 5b: 39: 86: 1c: 62 ASUSTek COMPUTER INC.192.168.100.7 48: 5b: 39: 86: 1c: 3a ASUSTek computer inc. used to update the MAC address, so that you can know which vendor's Nic is used during scanning [root @ gateway ~] # Get-oui-v www.2cto.com Fetching OUI data from http://standards.ieee.org/regauth/oui/oui.txtFetched 2642079 bytesOpening output file ieee-oui.txt16445 OUI entries written to file ieee-oui.txt [root @ gateway ~] # Get-iab-vFetching IAB data from http://standards.ieee.org/regauth/oui/iab.txtFetched 608631 bytesOpening output file ieee-iab.txt3995 IAB entries written to file ieee-iab.txt other usage can refer to arp-scan -- help author alang85