LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-28-2004, 04:04 PM   #1
thar
LQ Newbie
 
Registered: Oct 2003
Location: warsaw
Distribution: Own ;)
Posts: 22

Rep: Reputation: 15
Getting NIC MAC adress


Hi

How can I get MAC adress of a NIC having only the ip for it.

Thanx
 
Old 06-28-2004, 04:34 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can use "arp".
 
Old 06-28-2004, 05:02 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You may have to ping the address first to get it into the arp cache. Then run the command: For example......
arp -a 192.168.0.1
 
Old 06-28-2004, 11:38 PM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
use /sbin/arping as root.
 
  


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 obtain the MAC adress for your NIC Metablade Linux - Newbie 8 10-11-2005 01:44 PM
changing MAC adress? e1000 Linux - Wireless Networking 3 07-08-2004 05:13 PM
Is it possible to find an IP address from a MAC-adress? TheSpork Linux - Networking 1 06-30-2004 02:48 AM
Mac and ip adress kater0000 Linux - Networking 15 04-05-2004 06:04 PM
I need to change the MAC adress (can't connect to the net) Agna Linux - Newbie 4 03-15-2004 01:23 AM

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

All times are GMT -5. The time now is 04:40 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