Use arp-scan to scan lan ip addresses

Source: Internet
Author: User
1. install yuminstall-ylibpcaplibpcap-devel before installation. if The yum tool is not installed, install the following package with rpm [root@oradbaarp-scan-1.8] # yumlist | greplibpcaplibpcap. i386 & nbsp 1, which must be installed before installation
Yum install-y libpcap-devel
If the yum tool is not installed
Install the following software package with rpm
[Root @ oradba arp-scan-1.8] # yum list | grep libpcap
Libpcap. i386. 9.4-15. el5 installed
Libpcap. x86_64. 9.4-15. el5 installed
Libpcap-devel.i386. 9.4-15. el5 installed
Libpcap-devel.x86_64. 9.4-15. el5 installed2, download package
Wget http://www.nta-monitor.com/tools/arp-scan/download/arp-scan-1.8.tar.gz
3. Compile the software package
Tar xvf arp-scan-1.8.tar.gz
Cd arp-scan-1.8
./Configure
Make & make install
[Root @ Oracle arp-scan-1.8] # arp-scan-l
Interface: 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 which Nic to select if multiple NICs exist.
[Root @ gateway ~] # Arp-scan -- interface = eth1-l
Interface: 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 Inc
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.
192.168.100.8 bc: 30: 5b: ad: 74: 22 Dell Inc.
192.168.100.9 00: 26: b9: 8e: 16: 17 Dell Inc
192.168.100.15 00: 26: b9: 35: cf: 63 Dell Inc
192.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

Specify an IP address
[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 Inc
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.

Update the MAC address so that the Nic of the vendor can be used during scanning.
[Root @ gateway ~] # Get-oui-v
Fetching OUI data from http://standards.ieee.org/regauth/oui/oui.txt
Fetched 2642079 bytes
Opening output file ieee-oui.txt
16445 OUI entries written to file ieee-oui.txt
[Root @ gateway ~] # Get-iab-v
Fetching IAB data from http://standards.ieee.org/regauth/oui/iab.txt
Fetched 608631 bytes
Opening output file ieee-iab.txt
3995 IAB entries written to file ieee-iab.txt

For other usage, refer to arp-scan -- help.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.