LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2005, 09:58 PM   #1
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 16
Scanning a network for MAC addresses


Hello, we have an issue right now with our network. Some box (Windoze) has a worm on it that keeps forging IP addresses and spamming the rest of the network. We have determined the MAC address of the box, but that is all. Are there any Linux tools that will let me scan a subnet of IP addresses, and will then return the MACs of those hosts? Can Nmap do this? I'm pretty sure it can't, just thought I'd ask. Any ideas for a good shell script?

Thanks for any info,

Linuxpyro
 
Old 02-18-2005, 10:48 PM   #2
martinh_tech
LQ Newbie
 
Registered: Feb 2005
Location: Burnaby
Posts: 4

Rep: Reputation: 0
You can use arping to "ping" a specific MAC address. It will return the IP address of that computer.

You could run a ping sweep on your local LAN (same subnet) and then check you arp cache to see the MAC addresses of all the PCs that replied to your ping sweep. Since you are looking for a specific MAC, there is no point in sweeping a remote subnet, because they will all be mapped to you gateway's MAC.
You can use nmap to do a ping sweep.
nmap -sP 192.168.0.*
To check your arp cache:
arp -a
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MAC Address scanning Xandor Linux - Software 3 10-02-2005 12:45 PM
can MAC addresses be tracked? m00 Linux - Security 7 11-16-2004 09:50 PM
Viewing MAC addresses ivanatora Linux - Networking 1 09-26-2003 12:47 PM
Mac Addresses nixdisciple Linux - Security 6 07-01-2002 10:55 PM
Finding mac addresses Chijtska Linux - Security 5 02-27-2002 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration