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 03-26-2007, 11:07 AM   #1
bhupeshchawda
LQ Newbie
 
Registered: Mar 2007
Posts: 11

Rep: Reputation: 0
Question Different MAC addresses for same LAN card


Hi friends...I tried to get the MAC address of my only ethernet card eth0 (configured as DHCP). I got different results with the two commands arp and ifconfig.Can anybody explain me the reason and what is my real MAC address??
Code:
[root@localhost ~]# arp -an
? (192.168.1.1) at 00:17:7C:01:E5:75 [ether] on eth0
[root@localhost ~]#

[root@localhost ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:19:5B:6B:F2:55
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::219:5bff:fe6b:f255/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3049 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2559 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1638976 (1.5 MiB)  TX bytes:382240 (373.2 KiB)
          Interrupt:9 Base address:0x6c00
[root@localhost ~]#
Thanx in advance
--Bhupesh

Last edited by bhupeshchawda; 03-26-2007 at 11:39 AM.
 
Old 03-26-2007, 11:32 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I don't see the problem. arp appears to have reported your gateway (?) MAC address. ifconfig reported your NIC's MAC address.
 
Old 03-26-2007, 11:42 AM   #3
bhupeshchawda
LQ Newbie
 
Registered: Mar 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Ya thanx...I didn't know thar arp gives the gateway MAC address...Sorry for the silly question...
 
Old 03-26-2007, 04:50 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Not exactly..
arp gives you, unless specified by -a hostname, the MAC address of all machines connected to your net, not only the gateway.
Ciao
 
  


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
Mapping IP addresses to MAC addresses basilio Linux - Networking 17 09-12-2007 01:48 AM
Lan subnet and mac addresses firewall Ungluun Linux - Networking 1 12-20-2006 10:18 AM
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

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

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