Results 1 to 5 of 5

Thread: LINUX revert to real MAC address

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    152
    Thanks
    50
    Thanked 5 Times in 4 Posts
    Rep Power
    203
    Reputation
    26

    Default LINUX revert to real MAC address

    Hello,
    I know that I can spoof a MAC address fairly easily in Linux using
    Code:
    ifconfig <interface> down hw ether <new MAC>
    But what if I want to revert to the real MAC and I do not know what the real one was.
    Short of opening the box and trying to look for the MAC on sticker or something, how can you revert to the original MAC?
    Thanks,
    spence



Look Here ->
  • #2
    Junior Member
    Join Date
    Jul 2009
    Age
    67
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default

    As the root user (or user with appropriate permissions)
    Type "ifconfig -a"
    From the displayed information, find eth0 (this is the default first Ethernet adapter)
    Locate the number next to the HWaddr. This is your MAC address
    The MAC Address will be displayed in the form of 00C7:1B:8C:02.
    Example "ifconfig -a" output:
    eth0 Link encap:Ethernet HWaddr 00C7:1B:8C:02
    inet addr:192.168.111.20 Bcast:192.168.111.255 Mask:255.255.255.0
    Democracy: Three wolves and a sheep voting on what's for lunch.

  • #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    152
    Thanks
    50
    Thanked 5 Times in 4 Posts
    Rep Power
    203
    Reputation
    26

    Default

    Thanks for the reply Max232, but I think that just shows me the current MAC address. i.e. The spoofed one.
    I was after a way to display or revert to the original mac that the nic comes out of the factory with.

  • #4
    Senior Member
    jonc's Avatar
    Join Date
    Jan 2008
    Location
    Bangkok
    Posts
    2,130
    Thanks
    401
    Thanked 836 Times in 335 Posts
    Rep Power
    429
    Reputation
    7951

    Default

    disable the script and no more spoof... back to original or look in dmesg after you boot to see the original.
    It is a hobby so mileage varies
    Loving IPTV with XBMC and android M8
    Join in the XBMCHUB community and visit me at http://tvaddons.ag/

  • #5
    Junior Member
    Join Date
    Jan 2008
    Posts
    152
    Thanks
    50
    Thanked 5 Times in 4 Posts
    Rep Power
    203
    Reputation
    26

    Default

    Quote Originally Posted by jonc View Post
    disable the script and no more spoof... back to original or look in dmesg after you boot to see the original.
    Thanks jonc,
    I found that it was not kept after reboot. So you are correct.
    Entering the commands above sets the MAC, then reboot and the MAC reverts to normal.
    Thanks for the dmesg hint though.

  • Similar Threads

    1. The terminator is real.
      By Godzilla in forum General Science
      Replies: 13
      Last Post: 11-07-13, 02:39 AM
    2. iphone real gps finally
      By zakt72 in forum Mobile Phones
      Replies: 15
      Last Post: 19-07-09, 08:16 PM
    3. X X Is this for real X X.
      By beer4life in forum Satellite TV General
      Replies: 25
      Last Post: 27-02-09, 02:21 PM

    Bookmarks

    Posting Permissions

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