LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-02-2005, 11:07 AM   #1
reactnet
LQ Newbie
 
Registered: Mar 2005
Location: Romania
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
MAC address logs


Hi! I'm in a LAN and I'm interested if there are any log files for the MAC addresses on linux or how can I log them.
 
Old 03-02-2005, 01:17 PM   #2
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
you want to know your MAC adresse?

su to root and do a ifconfig -a

it's the numbers after HWaddr:


If you want to know the MAC addr of other PC on your lan, you'll probably need a lan analyzer, like ethereal.
 
Old 03-03-2005, 03:49 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
the iptables logs will usually show the mac addresses of hosts on your lan...
 
Old 03-03-2005, 08:51 AM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
/sbin/arp -a
is that what you are looking for? Note that you will only see MAC addresses of systems on your local network, since MAC addresses aren't used across IP subnets. You also may not see many MAC addresses if you are on a switched port, since only broadcasts and traffic destined for your system will come through.
 
Old 03-03-2005, 09:44 AM   #5
Kerberus
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
Logging MAC addresses is not very useful, it's more useful to attached MAC addresses to a switch port to stop muppets messing around with your cables.

MAC addresses are part of layer 2 and need to be translated via ARP to IP addresses.
If you have routed connections into your lan (which im sure you do) at layer 3 then MAC are not important as only the routers will use them.

MAC addresses are cached for 3 mins or so an ARP -a will only show you some of the recent address that your system wanted to resolve. i.e other broadcast systems etc... if you want to find each systems MAC address you'll need to do a ping sweep of the subnet then see the results from TCPdump or ethereal. the IP part of TCPIP will have to inculde it.

Kerberus
 
  


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
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
Weird MAC address in logs tangle Linux - Security 6 06-30-2005 05:54 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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