Results 1 to 7 of 7

Thread: Strange change of MAC address

  1. #1
    Join Date
    Nov 2007
    Location
    Dhaka, Bangladesh
    Beans
    261
    Distro
    Ubuntu 12.04 Precise Pangolin

    Strange change of MAC address

    Dear All,
    Recently I am facing a strange problem of machine MAC address being reset to some strange value. (Please see my previous post on this, http://ubuntuforums.org/showthread.php?t=1873116, I am yet to receive a response). Problem like this never happened before.

    After a reboot, machine MAC address changes to aa:00:04:00:0a:04, where the actual MAC address (00:14:22:50:78:71) of my Ethernet card is far from this. This is also frustrating since my service provider authenticates connections based MAC address and you get disconnected from Internet if your MAC address changes.

    After some hours of exasperation, the situation got remedied by setting the cloned MAC address (originally empty) in Edit Connections which is the same as the actual one. See the attached image. But this solution does not persist since after a reboot, the MAC address changes again irrespective of the set value in Edit Connections. Both the correct values are there, as you see in the image, but /sbin/ifconfig shows the incorrect value of aa:00:04:00:0a:04. To get out of the situation, I have to delete a digit from the MAC address in Edit Connections, put it back again, click Save, and the click Enable Networking twice in sequence (disable then enable).

    Here is my /etc/network/interfaces file
    Code:
    auto lo
    iface lo inet loopback
    I tried setting hwaddress in this file, without any avail.

    So, my machine IP is being set in networking-manager.

    Since the changed MAC remained the same at every reboot, I suspect that this was hard coded somewhere. And I would like to find out where this was/is coming from.

    Any suggestion will be highly appreciated.
    Attached Images Attached Images
    Last edited by mmasroorali; November 15th, 2011 at 01:26 AM.

  2. #2
    Join Date
    Nov 2011
    Beans
    1

    Re: Strange change of MAC address

    Hi ,you must change mac adress in the terminal
    sudo ifconfig wlan0 down
    sudo ifconfig wlan0 hw ether 00:00:00:00:00:00

    sudo ifconfig wlan0 wit this code you looking your mac if is changed you can setup conenction

  3. #3
    Join Date
    Nov 2007
    Location
    Dhaka, Bangladesh
    Beans
    261
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Strange change of MAC address

    Quote Originally Posted by jasmin123 View Post
    Hi ,you must change mac adress in the terminal
    sudo ifconfig wlan0 down
    sudo ifconfig wlan0 hw ether 00:00:00:00:00:00

    sudo ifconfig wlan0 wit this code you looking your mac if is changed you can setup conenction
    But does not this provide only a temporary solution? I am looking for something permanent. And I want to find the reason behind the change.

  4. #4
    Join Date
    Apr 2009
    Beans
    2,601

    Re: Strange change of MAC address

    Quote Originally Posted by mmasroorali View Post
    But does not this provide only a temporary solution? I am looking for something permanent. And I want to find the reason behind the change.


    Two things come to mind, ( I am in a motel and have to do the same thing). First, I have to do it every boot, so I just leave it on ( not much help!) Secondly, if you want to do it as described, the correct version would be

    sudo ifconfig eth0 down hw ether xx:xx:xx:xx:xx:xx
    sudo ifconfig eth0 up

    Since this is a wired connection, not a wireless.

  5. #5
    Join Date
    Feb 2006
    Location
    uk
    Beans
    Hidden!

    Re: Strange change of MAC address

    just put it in a startup script, perhaps? one that runs as root, so you don't need sudo.

    there's probably network startup commands in one of the /etc/init.d/ scripts - you could put it in there.

    alternatively, you could put the commands in /etc/rc.local

  6. #6
    Join Date
    Nov 2007
    Location
    Dhaka, Bangladesh
    Beans
    261
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Strange change of MAC address

    Thanks to all those who responded with the remedial solutions. Still I would like to know the reason behind the change. Any suggestion, however remote, will be appreciated.

  7. #7
    Join Date
    May 2009
    Beans
    1

    Re: Strange change of MAC address

    I've just encountered the same problem, after googling around I found your post, unfortunately without answer . Yet here you'll find answer to your question, the problem is with DECNet libraries. Just remove libdnet, libdnet-dev, dnet-common reboot and you'll be fine. I just checked - working

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
  •