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:
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.
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 is simple:
- Open up your Add/Remove Software utility.
- Search for "macchanger" (no quotes).
- Select MACchanger-GTK for installation (this will pick up any requirements necessary).
- Click Apply to install.
That's it. You are ready to use MACchanger-GTK.
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.
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.Advertisement