Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    34

    Question Different MAC addresses for same 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??

    Command line:
    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

  2. #2
    Just Joined!
    Join Date
    Mar 2007
    Posts
    7
    MAC address of your NIC is 00:19:5B:6B:F2:55.
    As you can seen 'arp -en' shows MAC addresses of your neighbours.
    In this case 192.168.1.1 has address 00:17:7C:01:E5:75.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •