LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-12-2009, 03:41 PM   #1
ਣ念Իท
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Is there a command which lists the MAC addresses of all attached devices?


While looking for info on how to change my MAC address I came across a command which sent the MAC address of all your network devices to stdout.

I remember it being a three letter command, unfortunately I can't apropos anything that works, google isn't helping, and I can't find the original place I saw it.

I think arp -a comes close, but I remember this command printing mac addresses only.

I have only successfully used this in OS X.

Last edited by ਣ念Իท; 08-12-2009 at 03:42 PM.
 
Old 08-12-2009, 03:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
arp ... I don't know of any other tool that would do what you ask.

[edit]
Heh ... after a quick look at arps man-page:
Code:
awk '$4 ~ /:/{print $4}' /proc/net/arp
[/edit]


Cheers,
Tink

Last edited by Tinkster; 08-12-2009 at 04:16 PM. Reason: [edit]
 
Old 08-12-2009, 04:00 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
You can try nmap
Code:
nmap 10.0.0.0/24 | grep MAC
 
  


Reply

Tags
mac address


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ethernet MAC Addresses database; MAC address-based processing cctualatin Linux - Newbie 1 04-14-2009 08:59 AM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 13 02-24-2008 08:16 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 1 02-09-2008 07:17 AM
Mapping IP addresses to MAC addresses basilio Linux - Networking 17 09-12-2007 01:48 AM


All times are GMT -5. The time now is 02:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration