On some occasions, we may need to change some MAC address on your PC. Although the MAC address is encoded directly on the network cards, there are some tools that allow mask the real MAC address by a «false»Defined by the user, managing to confuse the operating system.
The MAC address, in many cases, is used as a security and filtering mode for user access to a network. Either excluding, where it is defined which MAC addresses are not allowed access, or inclusive, such as which MAC addresses are allowed access.
Masking your MAC can be for various reasons, and if you are interested in trying it, you should try it with MACChanger
MacChanger is a GNU / Linux tool for viewing and manipulating the MAC addresses of each network interface on your computer.
To install, just go to a terminal and type
sudo apt-get install macchanger macchanger-gtk
MACChanger can be used under comfort or through a Graphic interface the tool has. Let's start with console. If we write:
we will have all the options for the manipulation of the MAC addresses in our equipment. We can assign:
- Specific addresses of a network interface (-m)
- Random addresses (-r)
- Same provider addresses (-and)
- Other provider addresses (-to)
In my case, my computer has two network interfaces, eth0 and wlan0. To deactivate eth0:
sudo ifconfig eth0 down
Once disabled, you can change the MAC address of the eth0 interface. If we wanted to change it for one random address:
sudo macchanger eth0 -r
And voila, you will be able to see in the console which is the permanent MAC address, and which is your current MAC address. Finally, it would only remain to activate the network interface again:
sudo ifconfig eth0 up
You can always check your MAC address from ifconfig or with macchanger
sudo macchanger -s eth0
If you prefer to work from a graphical interface, you can use the MACChanger window by executing: