Change your MAC address in Linux with MACchanger-GTK - gHacks Tech News

Change your MAC address in Linux with MACchanger-GTK

The MAC address is a very important string of characters that your computer depends upon in order to be networked. MAC stands for Media Access Control and represents the true address of a machine on a LAN. The MAC address of an ethernet device is a 6-byte number that is expressed as a 12 digit hexadecimal number such as:

00:30:1b:81:d3:f7

Most people only think in terms of IP addresses assigned to a computer. With the help of the Arp command, IP addresses are translated to MAC addresses which, in turn, allow the machine to speak to the network. Your  MAC address is set by the manufacturer. In this article I am going to show you a very handy GTK tool that allows you to change that MAC address.

Why change?

There are reasons why you would want to change a MAC address on a machine.  Some of the reasons are:

  • Get past a MAC filtering device.
  • Sniffing connections on a network.
  • Obfuscate the manufacturer-created MAC address.

Many reasons people change MAC addresses are less-than-friendly. I am, in no way, advocating such acts. I only show this tool for those reasons that are, as we say, "above board". For example. I have, only rarely, seen an instance where somehow the MAC address of a built-in network card was the same as the MAC address of a router. Because of this that machine was unable to get online. There were two ways around this: Purchase a new NIC or change the MAC address of the built-in NIC. For the latter reason, I took advantage of MACchanger-GTK.

Installation

Installation is simple:

  1. Open up your Add/Remove Software utility.
  2. Search for "macchanger" (no quotes).
  3. Select MACchanger-GTK for installation (this will pick up any requirements necessary).
  4. Click Apply to install.

That's it. You are ready to use MACchanger-GTK.

Usage

Figure 1

Using this tool is simple. But you will not find a menu entry for MACchanger-GTK. Instead you have to start it from either the command line (with the command macchanger-gtk) or by hitting <Alt>F2 and then entering macchanger-gtk. Once open you will see a very simple interface (see Figure 1) ready to change your MAC address. To do this follow these steps:

1. Select your Network Interface from the drop down.

2. Click See current MAC (this will display your address in a new window).

3. Click the Known vendor button. If your NIC is detected with enough information you can then change the address to another address of the same manufacturer. If not, your best bet is to go with Random.

4. From the Options drop down select one of the methods for changing your address.

5. Click Change MAC.

That will change the MAC address of your network interface card. Once changed you can then click the Quit button to dismiss the MACchanger-Gtk window.

Final thoughts

I can't stress enough that this tool should only be used for legitimate, legal reasons. Do not attempt to use MACchanger-GTK for any purpose that would land you in trouble. And, should you do so, Ghacks or the author is not, in any way, responsible for your actions.

On those occasions that you do need to change a MAC address (for the right reasons) it's good to know you have a simple GUI tool in Linux to do the job.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. JK III said on July 3, 2010 at 8:53 pm
    Reply

    Any similar tool for XP?

    1. Martin said on July 3, 2010 at 9:02 pm
      Reply
  2. allan said on July 4, 2010 at 5:16 am
    Reply

    Mac changer or any related tool should never be used in any circumstance. The default MAC address is just enough. Anyway, this tool must be run under the root user, if in any case, the tool is needed.

    TO JK III: Download the source code and compile or port it under Windows.

    1. Mata said on July 4, 2010 at 12:25 pm
      Reply

      “Mac changer or any related tool should never be used in any circumstance. The default MAC address is just enough.”

      Being able to have anonymous MAC address may be useful at the local Burger Joint or Cafe.

    2. FL said on August 7, 2010 at 3:09 pm
      Reply

      The article below provides further insight and highlights how your MAC address could well become a unique virtual number plate, automatically identifying and recording everywhere one goes on the super highway. Plus the last article on using VPN services also shows how they may not be as anonymous as assumed.

      Defcon speaker calls IPv6 a ‘security nightmare’
      What’s more, internet addresses that use the new protocol by default contain a 64-bit string that’s generated by a computer’s MAC, or Media Access Control, address. The use of the so-called extended unique identifier means that people who want to remain anonymous online will have to take precautions that aren’t necessary under today’s IPv4 system.

      “It means that everything you send or receive is labeled with your real MAC address and therefore if you were to do something naughty, like download copyrighted material, they would know who you are much better than they do if all they have is an IP version 4 address,” Bowne said.
      http://www.theregister.co.uk/2010/08/06/ipv6_security_nightmare/

      and for those for have been downloading files via what they thought as anonymous encrypted VPV services, need to know that there computer could have been leaking the users real IP address via the IPv6 protocol.

      Huge Security Flaw Makes VPNs Useless for BitTorrent
      http://torrentfreak.com/huge-security-flaw-makes-vpns-useless-for-bittorrent-100617/

  3. Mata said on July 4, 2010 at 12:15 pm
    Reply

    Well this is one reason to change a MAC address, spy Ruskies take note.

    The FBI’s case against an alleged deep cover Russian spy ring … were able to detect a particular MAC address…
    http://www.theregister.co.uk/2010/06/29/spy_ring_tech/

    1. FL said on July 6, 2010 at 1:33 pm
      Reply

      Google was also used MAC addresses in it’s infamous Global Street View data, password and email Snooping and many hackers must surely be using the MAC address info for nefarious reasons, such as the proof-of-concept one here:

      Hack Pinpoints Victim’s Physical Location
      ‘Samy worm’ writer publishes proof-of-concept that gleans home router GPS coordinates…via MAC address and Google maps….
      http://www.windowssecrets.com/2010/01/14/05-Samy-worm-author-now-targets-your-router

      1. FL said on July 6, 2010 at 1:36 pm
        Reply
  4. FL said on August 7, 2010 at 3:12 pm
    Reply

    More on IPv6 and MAC address issues:

    Who Cares About IPv6?
    http://samsclass.info/defcon.html

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.